diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-05-19 19:53:02 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-05-19 19:53:02 +0300 |
commit | 17ca84d486ee44662e42d10f8c3d18d7ab6d3bbc (patch) | |
tree | 77a242b3f56f2e1f8a9707b181c76db21d7b01d1 /plugins/Insights/DataTable | |
parent | 1f3aaa588f7b755c195fa019d369d5b982b4cc78 (diff) |
Make sure to ignore filter limit in insights when "all" is selected (#14356)
* Make sure to ignore filter limit when all selected
* only remove if not unlimited filter is selected
* add test
Diffstat (limited to 'plugins/Insights/DataTable')
-rw-r--r-- | plugins/Insights/DataTable/Filter/Limit.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Insights/DataTable/Filter/Limit.php b/plugins/Insights/DataTable/Filter/Limit.php index 42f6440f10..afcff5b666 100644 --- a/plugins/Insights/DataTable/Filter/Limit.php +++ b/plugins/Insights/DataTable/Filter/Limit.php @@ -37,18 +37,18 @@ class Limit extends BaseFilter $countIncreaser++; - if ($countIncreaser > $this->limitPositive) { + if ($countIncreaser > $this->limitPositive && $this->limitPositive > -1) { $table->deleteRow($key); } } else { $countDecreaser++; - if ($countDecreaser > $this->limitNegative) { + if ($countDecreaser > $this->limitNegative && $this->limitNegative > -1) { $table->deleteRow($key); } } } } -}
\ No newline at end of file +} |