ticketregel bugfix warteschlange 0

This commit is contained in:
OpenXE 2023-11-25 13:13:39 +01:00
parent d7db78489c
commit 22e411a6cc

View File

@ -204,12 +204,11 @@ class Ticket {
$sql = "UPDATE ticket SET status = '".$status."', zeit = NOW()"; $sql = "UPDATE ticket SET status = '".$status."', zeit = NOW()";
if ($warteschlange != '') { if ($warteschlange != '') {
$sql .= ", warteschlange = '".explode(" ",$warteschlange)[0]."'"; $sql .= ", warteschlange = '".explode(" ",$warteschlange)[0]."'";
} }
$sql .= " WHERE id IN (".implode(",",$selectedIds).")"; $sql .= " WHERE id IN (".implode(",",$selectedIds).")";
$this->app->DB->Update($sql); $this->app->DB->Update($sql);
$this->ticket_set_self_assigned_status($selectedIds); $this->ticket_set_self_assigned_status($selectedIds);
break; break;
case 'spam_filter': case 'spam_filter':
@ -253,7 +252,7 @@ class Ticket {
0, 0,
0, 0,
0, 0,
0, '',
1 1
)"; )";
$this->app->DB->Insert($sql); $this->app->DB->Insert($sql);