dev/core#108 reset address array when setting new event location
authorBrian Shaughnessy <brian@lcdservices.biz>
Wed, 9 May 2018 22:24:43 +0000 (18:24 -0400)
committerBrian Shaughnessy <brian@lcdservices.biz>
Wed, 9 May 2018 22:24:43 +0000 (18:24 -0400)
CRM/Event/Form/ManageEvent/Location.php

index 9e86414ea4a3487f8cfab248d5d245837bda9aa9..f7c11764dcd815ea9e4a19cc1ca33665ad0ca870 100644 (file)
@@ -225,6 +225,8 @@ 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();
     }
 
     // if 'create new loc' optioin is selected OR selected new loc is different