From 21781b20c7022cea3dbe04902750190f2e125d45 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Mon, 8 Dec 2014 21:14:12 -0500 Subject: [PATCH] Closes #89 selected from wrong table hame --- admin/delete_tickets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/delete_tickets.php b/admin/delete_tickets.php index c68b10d6..5403e9fa 100644 --- a/admin/delete_tickets.php +++ b/admin/delete_tickets.php @@ -243,7 +243,7 @@ else hesk_okCategory($ticket['category']); - $closedStatusRS = hesk_dbQuery("SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` WHERE `IsStaffClosedOption` = 1"); + $closedStatusRS = hesk_dbQuery("SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."statuses` WHERE `IsStaffClosedOption` = 1"); $closedStatus = hesk_dbFetchAssoc($closedStatusRS); hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."tickets` SET `status`='".$closedStatus['ID']."', `history`=CONCAT(`history`,'".hesk_dbEscape($revision)."') WHERE `id`='".intval($this_id)."' LIMIT 1");