[REF] Ensure that the form param _id is set when adding a new group with the newly...
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 25 Aug 2020 07:57:32 +0000 (17:57 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 25 Aug 2020 07:57:32 +0000 (17:57 +1000)
CRM/Group/Form/Edit.php

index d9be20cdfb864c7cc7e2815f7e0904c0cc8be207..e384dc36cc7fe3dd3313e43f3d4e6f426845c5ff 100644 (file)
@@ -371,7 +371,8 @@ WHERE  title = %1
       );
 
       $group = CRM_Contact_BAO_Group::create($params);
-
+      // Set the entity id so it is available to postProcess hook consumers
+      $this->setEntityId($group->id);
       //Remove any parent groups requested to be removed
       if (!empty($this->_groupValues['parents'])) {
         $parentGroupIds = explode(',', $this->_groupValues['parents']);