From 4c9337dcbb14883d29fbb95783a95457e2e36ced Mon Sep 17 00:00:00 2001 From: Zollner Robert Date: Sun, 25 Oct 2015 03:39:35 +0200 Subject: [PATCH 1/2] fixes #2197 Cannot insert new Bill since all those fields are defined as "NOT NULL" they must be set before inserting into mysql. --- html/pages/bills.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/html/pages/bills.inc.php b/html/pages/bills.inc.php index f43c79301d..b367a189d2 100644 --- a/html/pages/bills.inc.php +++ b/html/pages/bills.inc.php @@ -52,6 +52,18 @@ if ($_POST['addbill'] == 'yes') { 'bill_custid' => $_POST['bill_custid'], 'bill_ref' => $_POST['bill_ref'], 'bill_notes' => $_POST['bill_notes'], + 'rate_95th_in' => 0, + 'rate_95th_out' => 0, + 'rate_95th' => 0, + 'dir_95th' => 'in', + 'total_data' => 0, + 'total_data_in' => 0, + 'total_data_out' => 0, + 'rate_average' => 0, + 'rate_average_in' => 0, + 'rate_average_out' => 0, + 'bill_last_calc' => array('NOW()'), + 'bill_autoadded' => 0, ); $bill_id = dbInsert($insert, 'bills'); From 0557f34c737fd8fd25ea3f5a9cf85518daa2af0a Mon Sep 17 00:00:00 2001 From: Zollner Robert Date: Mon, 26 Oct 2015 15:51:34 +0200 Subject: [PATCH 2/2] I agree to the conditions of the Contributor Agreement contained in doc/General/Contributing.md --- AUTHORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS.md b/AUTHORS.md index 587faee6e7..f2d4c7d426 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -63,5 +63,6 @@ Contributors to LibreNMS: - Falk Stern (fstern) - Donovan Bridoux (PandaWawawa) - Sebastian Neuner (9er) +- Robert Zollner (Lupul) [1]: http://observium.org/ "Observium web site"