From f2f59f9b2ae5502ab5624cab7d44c39ddc70a8de Mon Sep 17 00:00:00 2001 From: Marius Burkard Date: Thu, 5 Oct 2017 22:33:39 +0200 Subject: [PATCH] - fixed error in overriding primary id for client_add in remoting --- interface/lib/classes/remoting.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/lib/classes/remoting.inc.php b/interface/lib/classes/remoting.inc.php index ef7156f478..e52f63ed2f 100644 --- a/interface/lib/classes/remoting.inc.php +++ b/interface/lib/classes/remoting.inc.php @@ -208,7 +208,10 @@ class remoting { //* Execute the SQL query $app->db->query($sql); - $insert_id = $app->db->insertID(); + if ( isset($params['_primary_id'] )) + $insert_id = $params['_primary_id']; + else + $insert_id = $app->db->insertID(); //* Stop on error while executing the sql query -- GitLab