Skip to content
Snippets Groups Projects
Commit a72ff49f authored by aydreeihn's avatar aydreeihn
Browse files

Quick Fix:

- On ticket edit, only display inactive help topic warning if the ticket has a help topic
parent 3f3ac292
No related branches found
No related tags found
No related merge requests found
...@@ -94,8 +94,7 @@ if ($_POST) ...@@ -94,8 +94,7 @@ if ($_POST)
<option value="" selected >&mdash; <?php echo __('Select Help Topic');?> &mdash;</option> <option value="" selected >&mdash; <?php echo __('Select Help Topic');?> &mdash;</option>
<?php <?php
if($topics=Topic::getHelpTopics()) { if($topics=Topic::getHelpTopics()) {
if(!array_key_exists($ticket->topic_id, $topics)) if($ticket->topic_id && !array_key_exists($ticket->topic_id, $topics)) {
{
$topics[$ticket->topic_id] = $ticket->topic; $topics[$ticket->topic_id] = $ticket->topic;
$warn = sprintf(__('%s selected must be active'), __('Help Topic')); $warn = sprintf(__('%s selected must be active'), __('Help Topic'));
} }
......
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