From 2bc9c7f811d3907e662a85d751be404ded62923b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 22 Mar 2022 16:13:59 -0400 Subject: [PATCH] SearchKit - Fix "all selected" checkbox when selecting a single page of results --- .../crmSearchTasks/traits/searchDisplayTasksTrait.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js b/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js index b15c67d8e7..4e9ff99c04 100644 --- a/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js +++ b/ext/search_kit/ang/crmSearchTasks/traits/searchDisplayTasksTrait.service.js @@ -21,7 +21,7 @@ // Select all rows on the current page selectPage: function() { - this.allRowsSelected = true; + this.allRowsSelected = (this.rowCount <= this.results.length); this.selectedRows = _.uniq(_.pluck(this.results, 'key')); }, -- 2.25.1