Skip to content

Commit

Permalink
Replaced device_create with system_create when inserting a new system…
Browse files Browse the repository at this point in the history
… into chart.
  • Loading branch information
mark-unwin committed May 16, 2016
1 parent 13428c9 commit 9f2306a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code_igniter/application/models/m_system.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 9f2306a

Please sign in to comment.