List view: Fix context not being passed correctly to header actions pre-filter

This commit is contained in:
Brian Federle 2013-12-10 15:19:45 -08:00
parent 93ba232eea
commit 248195fcd7
1 changed files with 1 additions and 1 deletions

View File

@ -1701,7 +1701,7 @@
$.each(listViewData.actions, function(actionName, action) {
if (!action.isHeader || (
action.preFilter && !action.preFilter({
context: listViewData.context ? listViewData.context : cloudStack.context
context: $listView.data('view-args').context ? $listView.data('view-args').context : cloudStack.context
})
)) return true;