From 394d66a3f0bd89809aaf7258e98fcaee4e3f0a9d Mon Sep 17 00:00:00 2001 From: tgregory86 <45361664+tgregory86@users.noreply.github.com> Date: Sun, 7 Jul 2019 11:53:15 -0400 Subject: [PATCH] Typo in Spelling prevented new services from being added. (#10420) When attempting to add a new services this was showing up in the logs: [2019-07-07 09:44:53] production.ERROR: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'servcie_disabled' in 'field list' (SQL: INSERT IGNORE INTO `services` (`device_id`,`service_ip`,`service_type`,`service_changed`,`service_desc`,`service_param`,`service_ignore`,`service_status`,`service_message`,`service_ds`,`servcie_disabled`) No error was presented in the gui, it said the service was added but in fact it was not and when you went back to the list of all services the one you tried to add was not present. --- includes/services.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/services.inc.php b/includes/services.inc.php index 8ddefc490d..e9315be936 100644 --- a/includes/services.inc.php +++ b/includes/services.inc.php @@ -46,7 +46,7 @@ function add_service($device, $type, $desc, $ip = 'localhost', $param = "", $ign $ip = $device['hostname']; } - $insert = array('device_id' => $device['device_id'], 'service_ip' => $ip, 'service_type' => $type, 'service_changed' => array('UNIX_TIMESTAMP(NOW())'), 'service_desc' => $desc, 'service_param' => $param, 'service_ignore' => $ignore, 'service_status' => 3, 'service_message' => 'Service not yet checked', 'service_ds' => '{}', 'servcie_disabled' => $disabled); + $insert = array('device_id' => $device['device_id'], 'service_ip' => $ip, 'service_type' => $type, 'service_changed' => array('UNIX_TIMESTAMP(NOW())'), 'service_desc' => $desc, 'service_param' => $param, 'service_ignore' => $ignore, 'service_status' => 3, 'service_message' => 'Service not yet checked', 'service_ds' => '{}', 'service_disabled' => $disabled); return dbInsert($insert, 'services'); }