Skip to content

Commit f2f59f9

Browse files
author
Marius Burkard
committed
- fixed error in overriding primary id for client_add in remoting
1 parent 2cba15d commit f2f59f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interface/lib/classes/remoting.inc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,10 @@ protected function klientadd($formdef_file, $reseller_id, $params)
208208

209209
//* Execute the SQL query
210210
$app->db->query($sql);
211-
$insert_id = $app->db->insertID();
211+
if ( isset($params['_primary_id'] ))
212+
$insert_id = $params['_primary_id'];
213+
else
214+
$insert_id = $app->db->insertID();
212215

213216

214217
//* Stop on error while executing the sql query

0 commit comments

Comments
 (0)