r5087 commitAddPort: return new port id
authorAlexey Andriyanov <alan@al-an.info>
Thu, 17 May 2012 20:10:45 +0000 (20:10 +0000)
committerAlexey Andriyanov <alan@al-an.info>
Thu, 17 May 2012 20:10:45 +0000 (20:10 +0000)
wwwroot/inc/database.php

index 2b213c3..b496928 100644 (file)
@@ -1356,6 +1356,7 @@ function commitAddPort ($object_id = 0, $port_name, $port_type_id, $port_label,
                )
        );
        $dbxlink->exec ('UNLOCK TABLES');
+       return lastInsertID();
 }
 
 function getPortReservationComment ($port_id)