CRM-16360 - Don't show id field when creating/editing activity types
authorColeman Watts <coleman@civicrm.org>
Sun, 26 Apr 2015 17:19:32 +0000 (11:19 -0600)
committerColeman Watts <coleman@civicrm.org>
Sun, 26 Apr 2015 17:19:32 +0000 (11:19 -0600)
CRM/Admin/Form/Options.php

index 3c92c0bcc95718f7ff5375a319aac36c1c2672a4..0a1925082592db984d2ccde0f3f7a48afdac9ec9 100644 (file)
@@ -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',