From: Jon goldberg Date: Thu, 24 Dec 2015 15:24:46 +0000 (-0500) Subject: CRM-17273 - Don't show the wrench that pops up the 'Edit Location Types' screen when... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a7353b709334c6831d555dcb9b496605927cca29;p=civicrm-core.git CRM-17273 - Don't show the wrench that pops up the 'Edit Location Types' screen when editing contact info --- diff --git a/CRM/Contact/Form/Edit/Address.php b/CRM/Contact/Form/Edit/Address.php index d46c6a837f..a32fc10471 100644 --- a/CRM/Contact/Form/Edit/Address.php +++ b/CRM/Contact/Form/Edit/Address.php @@ -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 );'); } diff --git a/CRM/Contact/Form/Edit/Email.php b/CRM/Contact/Form/Edit/Email.php index 7a018cf58e..85dde87edd 100644 --- a/CRM/Contact/Form/Edit/Email.php +++ b/CRM/Contact/Form/Edit/Email.php @@ -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(); diff --git a/CRM/Contact/Form/Edit/IM.php b/CRM/Contact/Form/Edit/IM.php index a801773716..56bf9585d1 100644 --- a/CRM/Contact/Form/Edit/IM.php +++ b/CRM/Contact/Form/Edit/IM.php @@ -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')); diff --git a/CRM/Contact/Form/Edit/Phone.php b/CRM/Contact/Form/Edit/Phone.php index a081122ecd..fc2c4cab31 100644 --- a/CRM/Contact/Form/Edit/Phone.php +++ b/CRM/Contact/Form/Edit/Phone.php @@ -72,6 +72,7 @@ class CRM_Contact_Form_Edit_Phone { 'entity' => 'phone', 'class' => 'eight', 'placeholder' => NULL, + 'option_url' => NULL, )); //is_Primary radio