Skip to content

Commit dafa2ba

Browse files
Raphael Petrinifballiano
authored andcommitted
implement #1189
1 parent 61282d5 commit dafa2ba

File tree

1 file changed

+5
-1
lines changed
  • app/code/core/Mage/Adminhtml/Block/Widget

1 file changed

+5
-1
lines changed

app/code/core/Mage/Adminhtml/Block/Widget/Grid.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,11 @@ protected function _addColumnFilterToCollection($column)
467467
} else {
468468
$cond = $column->getFilter()->getCondition();
469469
if ($field && isset($cond)) {
470-
$this->getCollection()->addFieldToFilter($field , $cond);
470+
if (in_array('NULL', array_values($cond), true)) {
471+
$this->getCollection()->addFieldToFilter($field, array('null' => true));
472+
} else {
473+
$this->getCollection()->addFieldToFilter($field, $cond);
474+
}
471475
}
472476
}
473477
}

0 commit comments

Comments
 (0)