Use title instead name in status message
authorPradeep Nayak <pradpnayak@gmail.com>
Tue, 8 Sep 2020 14:44:56 +0000 (15:44 +0100)
committerPradeep Nayak <pradpnayak@gmail.com>
Tue, 8 Sep 2020 14:44:56 +0000 (15:44 +0100)
CRM/Admin/Form/OptionGroup.php

index af8ca876340c3d770274e8b912c961d8f0d20fe9..2a5ec115a29ccf2bd3beacc86604b1409524335d 100644 (file)
@@ -133,7 +133,7 @@ class CRM_Admin_Form_OptionGroup extends CRM_Admin_Form {
       }
 
       $optionGroup = CRM_Core_BAO_OptionGroup::add($params);
-      CRM_Core_Session::setStatus(ts('The Option Group \'%1\' has been saved.', [1 => $optionGroup->name]), ts('Saved'), 'success');
+      CRM_Core_Session::setStatus(ts('The Option Group \'%1\' has been saved.', [1 => $optionGroup->title]), ts('Saved'), 'success');
     }
   }