From 6d52ee7b9029d5424c9f6a1155ab9dfc6bcf88b1 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Mon, 28 Aug 2017 09:26:41 -0500 Subject: [PATCH] oops: Fix Default Dept. Error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This addresses issue 3934 where setting the Default Department to Private will throw “Fix errors below” error without showing the specific error below. This adds the error class to the field so the system will show what to fix. --- include/staff/department.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/staff/department.inc.php b/include/staff/department.inc.php index 2ea8825e3..31e72f025 100644 --- a/include/staff/department.inc.php +++ b/include/staff/department.inc.php @@ -93,6 +93,7 @@ $info = Format::htmlchars(($errors && $_POST) ? $_POST : $info); <input type="radio" name="ispublic" value="0" <?php echo !$info['ispublic']?'checked="checked"':''; ?>><strong><?php echo __('Private');?></strong> <?php echo mb_convert_case(__('(internal)'), MB_CASE_TITLE);?> </label> <i class="help-tip icon-question-sign" href="#type"></i> + <span class="error"><?php echo $errors['ispublic']; ?></span> </td> </tr> <tr> -- GitLab