need to set the Id when duping
This commit is contained in:
parent
791c8fb3d5
commit
6e4c8fa224
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue