CRM-16019 - Reset dynamic js when changing date defaults
authorColeman Watts <coleman@civicrm.org>
Mon, 2 Mar 2015 15:30:32 +0000 (10:30 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 2 Mar 2015 15:33:02 +0000 (10:33 -0500)
CRM/Admin/Form/PreferencesDate.php

index f3f56eb0ee905deb602bcec449f7fa5a63c68cdb..9d0cf1847b74e68316aa6a071a267e52908d5318 100644 (file)
@@ -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');