From 045bc3801479f938a1919aee65dc1a1732a75df8 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 22 Jan 2018 17:30:31 +1300 Subject: [PATCH] CRM-21071 fix form to hold id before callling (nasty) block:create --- CRM/Event/Form/ManageEvent/Location.php | 3 +++ 1 file changed, 3 insertions(+) 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']; + } } } -- 2.25.1