From: Coleman Watts Date: Mon, 2 Mar 2015 15:30:32 +0000 (-0500) Subject: CRM-16019 - Reset dynamic js when changing date defaults X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=394c5d3396cc9f2ce35a795aaca48c7ca2b08998;p=civicrm-core.git CRM-16019 - Reset dynamic js when changing date defaults --- 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');