CRM_Admin_Form_Setting - Report errors in saving settings
authorTim Otten <totten@civicrm.org>
Mon, 17 Aug 2015 23:51:16 +0000 (16:51 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 18 Aug 2015 01:55:48 +0000 (18:55 -0700)
CRM/Admin/Form/Setting.php

index 56116fdf0bb49b9bcaeea3f116cb0faefe26fb84..6486759e5dc87ca2ac41f21a25166558c0434a1f 100644 (file)
@@ -269,6 +269,10 @@ AND    time_format <> ''
       //@todo array_diff this
       unset($params[$setting]);
     }
+    if (!empty($result['error_message'])) {
+      CRM_Core_Session::setStatus($result['error_message'], ts('Save Failed'), 'error');
+    }
+
     CRM_Core_BAO_ConfigSetting::create($params);
 
     CRM_Core_Config::clearDBCache();