From fce371bae3de009f15130d08650cbd27cd37e0be Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 25 May 2022 10:25:44 -0400 Subject: [PATCH] SearchKit - Fix pager & tab count after creating a new record in a popup --- .../traits/searchDisplayBaseTrait.service.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js b/ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js index 21be429058e4..9014c30393d5 100644 --- a/ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js +++ b/ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js @@ -46,7 +46,10 @@ } // Popup forms in this display or surrounding Afform trigger a refresh - $element.closest('form').on('crmPopupFormSuccess', this.getResults); + $element.closest('form').on('crmPopupFormSuccess', function() { + ctrl.rowCount = null; + ctrl.getResults(); + }); function onChangeFilters() { ctrl.page = 1;