(dev/core#255) Changes to copied event location reflects in original event location
authoryashodha <yashodha@cividesk.com>
Thu, 12 Jul 2018 09:45:20 +0000 (15:15 +0530)
committeryashodha <yashodha@cividesk.com>
Thu, 12 Jul 2018 09:45:20 +0000 (15:15 +0530)
CRM/Event/Form/ManageEvent/Location.php

index f7c11764dcd815ea9e4a19cc1ca33665ad0ca870..d28b2187fd00effb2db1cc47675f4dfdb1efd210 100644 (file)
@@ -225,10 +225,9 @@ class CRM_Event_Form_ManageEvent_Location extends CRM_Event_Form_ManageEvent {
       CRM_Core_DAO::setFieldValue('CRM_Event_DAO_Event', $this->_id,
         'loc_block_id', 'null'
       );
-
-      $this->_values['address'] = array();
     }
 
+    $this->_values['address'] = array();
     // if 'create new loc' optioin 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