mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Merge pull request #839 from twetech/Create-Payment-Bugfix
Fix email data assignment and select option bug in invoice.php and ticket_invoice_add_modal.php
This commit is contained in:
@@ -686,14 +686,14 @@ if (isset($_POST['add_payment'])) {
|
||||
'body' => $body
|
||||
];
|
||||
|
||||
$email_data = $email;
|
||||
$email_data[] = $email;
|
||||
|
||||
// Get Email ID for reference
|
||||
$email_id = mysqli_insert_id($mysqli);
|
||||
|
||||
// Email Logging
|
||||
|
||||
$_SESSION['alert_message'] .= "Email receipt sent ";
|
||||
$_SESSION['alert_message'] = "Email receipt sent ";
|
||||
|
||||
mysqli_query($mysqli,"INSERT INTO history SET history_status = 'Sent', history_description = 'Emailed Receipt!', history_invoice_id = $invoice_id");
|
||||
|
||||
@@ -719,7 +719,7 @@ if (isset($_POST['add_payment'])) {
|
||||
'body' => $body
|
||||
];
|
||||
|
||||
$email_data = $email;
|
||||
$email_data[] = $email;
|
||||
|
||||
// Get Email ID for reference
|
||||
$email_id = mysqli_insert_id($mysqli);
|
||||
@@ -736,7 +736,7 @@ if (isset($_POST['add_payment'])) {
|
||||
|
||||
// Add emails to queue
|
||||
if (!empty($email)) {
|
||||
addToMailQueue($mysqli, $email);
|
||||
addToMailQueue($mysqli, $email_data);
|
||||
}
|
||||
|
||||
//Update Invoice Status
|
||||
|
||||
Reference in New Issue
Block a user