From 2720ca5f1fb4521c62136a7dd956ccfdcb345c0c Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Tue, 21 Aug 2018 16:15:25 -0500 Subject: [PATCH] Workaround for bill quota/cdr bigint (#9053) Real fix is to install mysqlnd DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply `, i.e `./scripts/github-apply 5926` --- html/pages/bill/actions.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html/pages/bill/actions.inc.php b/html/pages/bill/actions.inc.php index 8320945710..74bd1d9afd 100644 --- a/html/pages/bill/actions.inc.php +++ b/html/pages/bill/actions.inc.php @@ -76,12 +76,13 @@ if ($_POST['action'] == 'update_bill') { } }//end if + // NOTE: casting to string for mysqli bug (fixed by mysqlnd) if (dbUpdate( array( 'bill_name' => $_POST['bill_name'], 'bill_day' => $_POST['bill_day'], - 'bill_quota' => $bill_quota, - 'bill_cdr' => $bill_cdr, + 'bill_quota' => (string)$bill_quota, + 'bill_cdr' => (string)$bill_cdr, 'bill_type' => $_POST['bill_type'], 'bill_custid' => $_POST['bill_custid'], 'bill_ref' => $_POST['bill_ref'],