From 394c5d3396cc9f2ce35a795aaca48c7ca2b08998 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 2 Mar 2015 10:30:32 -0500 Subject: [PATCH] CRM-16019 - Reset dynamic js when changing date defaults --- CRM/Admin/Form/PreferencesDate.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Admin/Form/PreferencesDate.php b/CRM/Admin/Form/PreferencesDate.php index f3f56eb0ee..9d0cf1847b 100644 --- a/CRM/Admin/Form/PreferencesDate.php +++ b/CRM/Admin/Form/PreferencesDate.php @@ -133,6 +133,9 @@ class CRM_Admin_Form_PreferencesDate extends CRM_Admin_Form { $dao->save(); + // Update dynamic js to reflect new date settings + CRM_Core_Resources::singleton()->resetCacheCode(); + CRM_Core_Session::setStatus(ts("The date type '%1' has been saved.", array(1 => $params['name']) ), ts('Saved'), 'success'); -- 2.25.1