From 6e4c8fa22424832fbf811fa68f2345f0585e92e8 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 24 Jun 2016 10:31:15 -0400 Subject: [PATCH] need to set the Id when duping --- web/skins/classic/views/monitor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/skins/classic/views/monitor.php b/web/skins/classic/views/monitor.php index b3b11fce3..b214eb31f 100644 --- a/web/skins/classic/views/monitor.php +++ b/web/skins/classic/views/monitor.php @@ -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(