Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1ba934

Browse files
committed
issue: Empty Dept Error On Topic Update
This addresses an issue where when updating a Help Topic and having a disabled Department set for example, the system will return a generic error stating to address the errors below; but none are shown. This is due to a missing error div that displays the Department errors. This simply adds the div so Department errors are visible.
1 parent 3ff35ad commit f1ba934

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/staff/helptopic.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
&nbsp;<span class="error">*&nbsp;<?php echo $warn; ?></span>
147147
<?php } ?>
148148
<i class="help-tip icon-question-sign" href="#department"></i>
149+
<div class="error"><?php echo $errors['dept_id']; ?></div>
149150
</td>
150151
</tr>
151152
<tr class="border">

0 commit comments

Comments
 (0)