From: Jon goldberg Date: Thu, 14 Jan 2016 03:00:05 +0000 (-0500) Subject: CRM-17273 - CiviCRM Core - disallow editing location types from the Contact Edit... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ddda86f885229010cc5529e43680137d89f9f238;p=civicrm-core.git CRM-17273 - CiviCRM Core - disallow editing location types from the Contact Edit screen --- diff --git a/CRM/Contact/Form/Edit/Address.php b/CRM/Contact/Form/Edit/Address.php index f1fd17bb52..53b8b35887 100644 --- a/CRM/Contact/Form/Edit/Address.php +++ b/CRM/Contact/Form/Edit/Address.php @@ -75,6 +75,7 @@ class CRM_Contact_Form_Edit_Address { $form->addSelect("address[$blockId][location_type_id]", array( 'entity' => 'address', 'class' => 'eight', + 'option_url' => NULL, ) + $js, $inlineEdit); if (!$inlineEdit) { diff --git a/CRM/Contact/Form/Edit/Email.php b/CRM/Contact/Form/Edit/Email.php index 3bef4b552a..b4704c5d12 100644 --- a/CRM/Contact/Form/Edit/Email.php +++ b/CRM/Contact/Form/Edit/Email.php @@ -70,6 +70,7 @@ class CRM_Contact_Form_Edit_Email { 'entity' => 'email', 'class' => 'eight', 'placeholder' => NULL, + 'option_url' => NULL, )); $multipleBulk = CRM_Core_BAO_Email::isMultipleBulkMail(); diff --git a/CRM/Contact/Form/Edit/IM.php b/CRM/Contact/Form/Edit/IM.php index 80028fa494..2a00bffcf7 100644 --- a/CRM/Contact/Form/Edit/IM.php +++ b/CRM/Contact/Form/Edit/IM.php @@ -67,6 +67,7 @@ class CRM_Contact_Form_Edit_IM { 'entity' => 'im', 'class' => 'eight', 'placeholder' => NULL, + 'option_url' => NULL, )); //IM box diff --git a/CRM/Contact/Form/Edit/Phone.php b/CRM/Contact/Form/Edit/Phone.php index 4afc211754..926865da74 100644 --- a/CRM/Contact/Form/Edit/Phone.php +++ b/CRM/Contact/Form/Edit/Phone.php @@ -76,6 +76,7 @@ class CRM_Contact_Form_Edit_Phone { 'entity' => 'phone', 'class' => 'eight', 'placeholder' => NULL, + 'option_url' => NULL, )); //is_Primary radio