Skip to content

Commit 248195f

Browse files
committed
List view: Fix context not being passed correctly to header actions pre-filter
1 parent 93ba232 commit 248195f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ui/scripts/ui/widgets/listView.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@
17011701
$.each(listViewData.actions, function(actionName, action) {
17021702
if (!action.isHeader || (
17031703
action.preFilter && !action.preFilter({
1704-
context: listViewData.context ? listViewData.context : cloudStack.context
1704+
context: $listView.data('view-args').context ? $listView.data('view-args').context : cloudStack.context
17051705
})
17061706
)) return true;
17071707

0 commit comments

Comments
 (0)