Skip to content
Snippets Groups Projects
Commit aa023156 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix bad logic deleting tickets

parent 5a935caa
No related branches found
No related tags found
No related merge requests found
......@@ -575,9 +575,8 @@ class TicketsAjaxAPI extends AjaxController {
if ($_POST && !$errors) {
foreach ($_POST['tids'] as $tid) {
if (($t=Ticket::lookup($tid))
&& $t->getDeptId() != $_POST['dept_id']
&& $t->checkStaffPerm($thisstaff, Ticket::PERM_DELETE)
&& $t->delete($_POST, $e)
&& $t->delete($_POST['comments'], $e)
)
$i++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment