mirror of
https://github.com/itflow-org/itflow
synced 2026-03-18 19:54:51 +00:00
Properly get the new ticket number for logging in ticket merge
This commit is contained in:
@@ -1058,7 +1058,7 @@ if (isset($_POST['bulk_merge_tickets'])) {
|
|||||||
|
|
||||||
// NEW PARENT ticket details
|
// NEW PARENT ticket details
|
||||||
// Get merge into ticket id (as it may differ from the number)
|
// Get merge into ticket id (as it may differ from the number)
|
||||||
$sql = mysqli_query($mysqli, "SELECT ticket_id FROM tickets WHERE ticket_id = $merge_into_ticket_id");
|
$sql = mysqli_query($mysqli, "SELECT ticket_id, ticket_number FROM tickets WHERE ticket_id = $merge_into_ticket_id");
|
||||||
if (mysqli_num_rows($sql) == 0) {
|
if (mysqli_num_rows($sql) == 0) {
|
||||||
flash_alert("Cannot merge into that ticket.", 'error');
|
flash_alert("Cannot merge into that ticket.", 'error');
|
||||||
redirect();
|
redirect();
|
||||||
@@ -1836,7 +1836,7 @@ if (isset($_POST['merge_ticket'])) {
|
|||||||
|
|
||||||
// NEW PARENT ticket details
|
// NEW PARENT ticket details
|
||||||
// Get merge into ticket id (as it may differ from the number)
|
// Get merge into ticket id (as it may differ from the number)
|
||||||
$sql = mysqli_query($mysqli, "SELECT ticket_id, ticket_client_id FROM tickets WHERE ticket_id = $merge_into_ticket_id");
|
$sql = mysqli_query($mysqli, "SELECT ticket_id, ticket_number, ticket_client_id FROM tickets WHERE ticket_id = $merge_into_ticket_id");
|
||||||
if (mysqli_num_rows($sql) == 0) {
|
if (mysqli_num_rows($sql) == 0) {
|
||||||
flash_alert("Cannot merge into that ticket.", 'error');
|
flash_alert("Cannot merge into that ticket.", 'error');
|
||||||
redirect();
|
redirect();
|
||||||
|
|||||||
Reference in New Issue
Block a user