From: Coleman Watts Date: Sun, 26 Apr 2015 17:19:32 +0000 (-0600) Subject: CRM-16360 - Don't show id field when creating/editing activity types X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=635a99e57f99801b61870c39c9704ef6a4c24b37;p=civicrm-core.git CRM-16360 - Don't show id field when creating/editing activity types --- diff --git a/CRM/Admin/Form/Options.php b/CRM/Admin/Form/Options.php index 3c92c0bcc9..0a19250825 100644 --- a/CRM/Admin/Form/Options.php +++ b/CRM/Admin/Form/Options.php @@ -171,12 +171,14 @@ class CRM_Admin_Form_Options extends CRM_Admin_Form { TRUE ); - $this->add('text', - 'value', - ts('Value'), - CRM_Core_DAO::getAttribute('CRM_Core_DAO_OptionValue', 'value'), - TRUE - ); + if ($this->_gName != 'activity_type') { + $this->add('text', + 'value', + ts('Value'), + CRM_Core_DAO::getAttribute('CRM_Core_DAO_OptionValue', 'value'), + TRUE + ); + } if (!in_array($this->_gName, array( 'email_greeting',