CRM-17273 - Don't show the wrench that pops up the 'Edit Location Types' screen when...
authorJon goldberg <jon@palantetech.coop>
Thu, 24 Dec 2015 15:24:46 +0000 (10:24 -0500)
committerJon goldberg <jon@palantetech.coop>
Thu, 24 Dec 2015 15:24:46 +0000 (10:24 -0500)
CRM/Contact/Form/Edit/Address.php
CRM/Contact/Form/Edit/Email.php
CRM/Contact/Form/Edit/IM.php
CRM/Contact/Form/Edit/Phone.php

index d46c6a837fc34d251db90427b1d6a80469170268..a32fc10471f383d5e5b9077c0df44a3874a13fc7 100644 (file)
@@ -67,7 +67,7 @@ class CRM_Contact_Form_Edit_Address {
     }
 
     //make location type required for inline edit
-    $form->addField("address[$blockId][location_type_id]", array('entity' => 'address', 'class' => 'eight') + $js, $inlineEdit);
+    $form->addField("address[$blockId][location_type_id]", array('entity' => 'address', 'class' => 'eight', 'option_url' => NULL) + $js, $inlineEdit);
     if (!$inlineEdit) {
       $js = array('id' => 'Address_' . $blockId . '_IsPrimary', 'onClick' => 'singleSelect( this.id );');
     }
index 7a018cf58e8fe5d98e8842a8811ea1c0c67ae1f2..85dde87edd6132b90f89d2f943e4212b57937dfc 100644 (file)
@@ -62,7 +62,7 @@ class CRM_Contact_Form_Edit_Email {
     $form->addRule("email[$blockId][email]", ts('Email is not valid.'), 'email');
     if (isset($form->_contactType) || $blockEdit) {
       //Block type
-      $form->addField("email[$blockId][location_type_id]", array('entity' => 'email', 'placeholder' => NULL, 'class' => 'eight'));
+      $form->addField("email[$blockId][location_type_id]", array('entity' => 'email', 'placeholder' => NULL, 'class' => 'eight', 'option_url' => NULL));
 
       //TODO: Refactor on_hold field to select.
       $multipleBulk = CRM_Core_BAO_Email::isMultipleBulkMail();
index a8017737168f13576e953f22fd6530c26ff6e26e..56bf9585d1b561f6f3548cce1ae9f5762563bfe2 100644 (file)
@@ -58,7 +58,7 @@ class CRM_Contact_Form_Edit_IM {
     //IM provider select
     $form->addField("im[$blockId][provider_id]", array('entity' => 'im', 'class' => 'eight', 'placeholder' => NULL));
     //Block type select
-    $form->addField("im[$blockId][location_type_id]", array('entity' => 'im', 'class' => 'eight', 'placeholder' => NULL));
+    $form->addField("im[$blockId][location_type_id]", array('entity' => 'im', 'class' => 'eight', 'placeholder' => NULL, 'option_url' => NULL));
 
     //IM box
     $form->addField("im[$blockId][name]", array('entity' => 'im'));
index a081122ecd0e0453a75b8ee0468636ad8d34a1a5..fc2c4cab31c54856771127922bf3a5db2a0b6f20 100644 (file)
@@ -72,6 +72,7 @@ class CRM_Contact_Form_Edit_Phone {
         'entity' => 'phone',
           'class' => 'eight',
           'placeholder' => NULL,
+          'option_url' => NULL,
         ));
 
       //is_Primary radio