From 635a99e57f99801b61870c39c9704ef6a4c24b37 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 26 Apr 2015 11:19:32 -0600 Subject: [PATCH] CRM-16360 - Don't show id field when creating/editing activity types --- CRM/Admin/Form/Options.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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', -- 2.25.1