From af96269923b39c6051e6b786de7fb04b1c75f409 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 17 Aug 2015 16:51:16 -0700 Subject: [PATCH] CRM_Admin_Form_Setting - Report errors in saving settings --- CRM/Admin/Form/Setting.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Admin/Form/Setting.php b/CRM/Admin/Form/Setting.php index 56116fdf0b..6486759e5d 100644 --- 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(); -- 2.25.1