projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
976afa8
)
CRM_Admin_Form_Setting - Report errors in saving settings
author
Tim Otten
<totten@civicrm.org>
Mon, 17 Aug 2015 23:51:16 +0000
(16:51 -0700)
committer
Tim Otten
<totten@civicrm.org>
Tue, 18 Aug 2015 01:55:48 +0000
(18:55 -0700)
CRM/Admin/Form/Setting.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Admin/Form/Setting.php
b/CRM/Admin/Form/Setting.php
index 56116fdf0bb49b9bcaeea3f116cb0faefe26fb84..6486759e5dc87ca2ac41f21a25166558c0434a1f 100644
(file)
--- a/
CRM/Admin/Form/Setting.php
+++ b/
CRM/Admin/Form/Setting.php
@@
-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();