From: Coleman Watts Date: Sun, 11 Apr 2021 01:28:20 +0000 (-0400) Subject: SearchKit - Flush Angular cache when saving X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7ec684ffccfeb13fe814e4e05747d81edff0da7f;p=civicrm-core.git SearchKit - Flush Angular cache when saving --- 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); }