From 9f2306aa11a59689f2a0b471e329ddaf110e490b Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Mon, 16 May 2016 10:32:13 +1000 Subject: [PATCH] Replaced device_create with system_create when inserting a new system into chart. --- code_igniter/application/models/m_system.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_igniter/application/models/m_system.php b/code_igniter/application/models/m_system.php index 293a25259..6d1b5d348 100644 --- a/code_igniter/application/models/m_system.php +++ b/code_igniter/application/models/m_system.php @@ -1331,7 +1331,7 @@ public function insert_system($details, $display = 'n') } # add a count to our chart table - $sql = "INSERT INTO chart (`when`, `what`, `org_id`, `count`) VALUES (DATE(NOW()), 'device_create', " . intval($details->man_org_id) . ", 1) ON DUPLICATE KEY UPDATE `count` = `count` + 1"; + $sql = "INSERT INTO chart (`when`, `what`, `org_id`, `count`) VALUES (DATE(NOW()), 'system_create', " . intval($details->man_org_id) . ", 1) ON DUPLICATE KEY UPDATE `count` = `count` + 1"; $sql = $this->clean_sql($sql); $query = $this->db->query($sql);