diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2013-10-22 12:15:41 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2013-10-22 12:15:41 +0400 |
commit | fe631813a815510a5a9a96a476deaab9444cb614 (patch) | |
tree | 8c22df40591a16448d0810ef95cdda88b0c31333 /core/DataTable/Filter/ExcludeLowPopulation.php | |
parent | f3ff0cf91c2bfc4e1b6f52a81111aa84ce020952 (diff) |
Refs #4200, documented many more filters and modified ColumnCallbackDeleteRow so filter supplied returns true if the row should be deleted (as opposed to the other way around).
Diffstat (limited to 'core/DataTable/Filter/ExcludeLowPopulation.php')
-rw-r--r-- | core/DataTable/Filter/ExcludeLowPopulation.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/DataTable/Filter/ExcludeLowPopulation.php b/core/DataTable/Filter/ExcludeLowPopulation.php index cd9bc24add..ace8e7248c 100644 --- a/core/DataTable/Filter/ExcludeLowPopulation.php +++ b/core/DataTable/Filter/ExcludeLowPopulation.php @@ -68,10 +68,10 @@ class ExcludeLowPopulation extends Filter public function filter($table) { $minimumValue = $this->minimumValue; - $isValueHighPopulation = function ($value) use ($minimumValue) { - return $value >= $minimumValue; + $isValueLowPopulation = function ($value) use ($minimumValue) { + return $value < $minimumValue; }; - $table->filter('ColumnCallbackDeleteRow', array($this->columnToFilter, $isValueHighPopulation)); + $table->filter('ColumnCallbackDeleteRow', array($this->columnToFilter, $isValueLowPopulation)); } } |