mirror of https://github.com/itflow-org/itflow
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
This commit is contained in:
parent
48405fe930
commit
fa12d23b2f
2
post.php
2
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");
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue