need to set the Id when duping

This commit is contained in:
Isaac Connor 2016-06-24 10:31:15 -04:00
parent 791c8fb3d5
commit 6e4c8fa224
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ if ( ! empty($_REQUEST['mid']) ) {
$x10Monitor = dbFetchOne( 'SELECT * FROM TriggersX10 WHERE MonitorId = ?', NULL, array($_REQUEST['dupId']) );
$clonedName = $monitor->Name();
$monitor->Name( translate('Monitor').'-'.$nextId );
$monitor->Id( $nextId );
} else {
$monitor = new Monitor();
$monitor->set( array(