From 72641e86a816fea4b727a943fa2edd16c12a3caf Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 12 Dec 2017 20:52:50 -0500 Subject: [PATCH] Add new group added id return to Group::create --- src/Model/Group.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Model/Group.php b/src/Model/Group.php index 857b972d62..cdc2a821d0 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -47,6 +47,9 @@ class Group extends BaseObject } $return = dba::insert('group', ['uid' => $uid, 'name' => $name]); + if ($return) { + $return = dba::lastInsertId(); + } } return $return; } -- 2.39.5