Skip to content

Commit

Permalink
bugfix: fixed ticket category save during new ticket creation assigne…
Browse files Browse the repository at this point in the history
…d with new timetable event
  • Loading branch information
chilek committed Jul 17, 2020
1 parent d91cbee commit 0f5b0e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/eventadd.php
Expand Up @@ -214,6 +214,10 @@
$ticket['deadline'] = $dtime;
}

if (!empty($ticket['categories'])) {
$ticket['categories'] = array_flip($ticket['categories']);
}

$event['ticketid'] = $LMS->TicketAdd($ticket);

if (ConfigHelper::checkConfig('phpui.newticket_notify')) {
Expand Down

0 comments on commit 0f5b0e0

Please sign in to comment.