Merge pull request #13534 from yashodha/dev-696
authorEileen McNaughton <eileen@mcnaughty.com>
Tue, 19 Feb 2019 06:57:28 +0000 (19:57 +1300)
committerGitHub <noreply@github.com>
Tue, 19 Feb 2019 06:57:28 +0000 (19:57 +1300)
(dev/core#696) Changes to copied event phone and email reflects in or…

CRM/Event/Form/ManageEvent/Location.php

index 58d27ed775dcf1ff0d2ade7c985f675318cf7c36..50d853972a9a9f8275ac42b310dc5d7a0cc50cad 100644 (file)
@@ -228,8 +228,8 @@ class CRM_Event_Form_ManageEvent_Location extends CRM_Event_Form_ManageEvent {
       );
     }
 
-    $this->_values['address'] = array();
-    // if 'create new loc' optioin is selected OR selected new loc is different
+    $this->_values['address'] = $this->_values['phone'] = $this->_values['email'] = array();
+    // if 'create new loc' option is selected OR selected new loc is different
     // from old one, go ahead and delete the old loc provided thats not being
     // used by any other event
     if ($this->_oldLocBlockId && $deleteOldBlock) {