From: eileen Date: Mon, 22 Jan 2018 04:30:31 +0000 (+1300) Subject: CRM-21071 fix form to hold id before callling (nasty) block:create X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=045bc3801479f938a1919aee65dc1a1732a75df8;p=civicrm-core.git CRM-21071 fix form to hold id before callling (nasty) block:create --- diff --git a/CRM/Event/Form/ManageEvent/Location.php b/CRM/Event/Form/ManageEvent/Location.php index 1f1ec58a48..9fccb5fa41 100644 --- a/CRM/Event/Form/ManageEvent/Location.php +++ b/CRM/Event/Form/ManageEvent/Location.php @@ -252,6 +252,9 @@ class CRM_Event_Form_ManageEvent_Location extends CRM_Event_Form_ManageEvent { $values['is_primary'] = 1; } $values['location_type_id'] = ($defaultLocationType->id) ? $defaultLocationType->id : 1; + if (isset($this->_values[$block][$count])) { + $values['id'] = $this->_values[$block][$count]['id']; + } } }