CRM-17273 - CiviCRM Core - disallow editing location types from the Contact Edit...
authorJon goldberg <jon@palantetech.coop>
Thu, 14 Jan 2016 03:00:05 +0000 (22:00 -0500)
committerJon goldberg <jon@palantetech.coop>
Thu, 14 Jan 2016 03:00:05 +0000 (22:00 -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 f1fd17bb52d781142951de73ff5d6e08d24cfdfc..53b8b35887ec7d1490ac23863f4210f58989cb3b 100644 (file)
@@ -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) {
index 3bef4b552abb0639a945b9e98278b006117a2824..b4704c5d1286007a12aa4c7da8f7d467b3b7444f 100644 (file)
@@ -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();
index 80028fa494f674fefa304188d22753aeb9871163..2a00bffcf7e27a25ebf071a7da6b6b0565c9b3c1 100644 (file)
@@ -67,6 +67,7 @@ class CRM_Contact_Form_Edit_IM {
         'entity' => 'im',
         'class' => 'eight',
         'placeholder' => NULL,
+        'option_url' => NULL,
       ));
 
     //IM box
index 4afc211754b21010d692e4091d92284d8b6ec2c6..926865da7454b6ce98de838d26e7b1ccdda78936 100644 (file)
@@ -76,6 +76,7 @@ class CRM_Contact_Form_Edit_Phone {
           'entity' => 'phone',
           'class' => 'eight',
           'placeholder' => NULL,
+          'option_url' => NULL,
         ));
 
       //is_Primary radio