From 7ec684ffccfeb13fe814e4e05747d81edff0da7f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 10 Apr 2021 21:28:20 -0400 Subject: [PATCH] SearchKit - Flush Angular cache when saving --- CRM/Contact/BAO/SavedSearch.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Contact/BAO/SavedSearch.php b/CRM/Contact/BAO/SavedSearch.php index 6c4b976749..23135f1ad1 100644 --- a/CRM/Contact/BAO/SavedSearch.php +++ b/CRM/Contact/BAO/SavedSearch.php @@ -362,6 +362,11 @@ LEFT JOIN civicrm_email ON (contact_a.id = civicrm_email.contact_id AND civicrm_ } $params['modified_id'] = $loggedInContactID; } + + // Flush angular caches to refresh search displays + if (isset($params['api_params'])) { + Civi::container()->get('angular')->clear(); + } return self::writeRecord($params); } -- 2.25.1