From fa12d23b2fe1f22d90bfbc375956b5e92815faaf Mon Sep 17 00:00:00 2001 From: root Date: Sun, 28 Apr 2019 14:59:35 -0400 Subject: [PATCH] Fixed issue where if you sent an invoice it would update all invoices to that client and status. I forgot a where statment in POST wooops --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 9a3673b6..767e8c64 100644 --- a/post.php +++ b/post.php @@ -1322,7 +1322,7 @@ if(isset($_GET['email_invoice'])){ //Don't chnage the status to sent if the status is anything but draf if($invoice_status == 'Draft'){ - mysqli_query($mysqli,"UPDATE invoices SET invoice_status = 'Sent', client_id = $client_id"); + mysqli_query($mysqli,"UPDATE invoices SET invoice_status = 'Sent', client_id = $client_id WHERE invoice_id = $invoice_id"); }