File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Backend/Block/Widget Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -300,7 +300,11 @@ protected function _addColumnFilterToCollection($column)
300
300
if ($ this ->getCollection ()) {
301
301
$ field = $ column ->getFilterIndex () ? $ column ->getFilterIndex () : $ column ->getIndex ();
302
302
if ($ column ->getFilterConditionCallback ()) {
303
- $ column ->getFilterConditionCallback ()[0 ]->{$ column ->getFilterConditionCallback ()[1 ]}(
303
+ $ class = isset ($ column ->getFilterConditionCallback ()['class ' ])
304
+ ? $ column ->getFilterConditionCallback ()['class ' ] : $ column ->getFilterConditionCallback ()[0 ];
305
+ $ method = isset ($ column ->getFilterConditionCallback ()['method ' ])
306
+ ? $ column ->getFilterConditionCallback ()['method ' ] : $ column ->getFilterConditionCallback ()[1 ];
307
+ $ class ->$ method (
304
308
$ this ->getCollection (),
305
309
$ column
306
310
);
You can’t perform that action at this time.
0 commit comments