From ddda86f885229010cc5529e43680137d89f9f238 Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Wed, 13 Jan 2016 22:00:05 -0500 Subject: [PATCH] CRM-17273 - CiviCRM Core - disallow editing location types from the Contact Edit screen --- CRM/Contact/Form/Edit/Address.php | 1 + CRM/Contact/Form/Edit/Email.php | 1 + CRM/Contact/Form/Edit/IM.php | 1 + CRM/Contact/Form/Edit/Phone.php | 1 + 4 files changed, 4 insertions(+) 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 -- 2.25.1