Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Issue: Help Topic Number Format
This commit fixes an issue where we did not clear the FLAG_CUSTOM_NUMBERS flag when setting the ticket number format back to System Default for Help Topics.

We will also stop clearing saved number_formats so that agents have the option to reenable them without having the reconfigure the format.
  • Loading branch information
aydreeihn committed Jan 31, 2020
1 parent 933bb1f commit 52c9c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/class.topic.php
Expand Up @@ -453,8 +453,8 @@ function update($vars, &$errors) {
$this->isactive = $vars['isactive'];
$this->ispublic = $vars['ispublic'];
$this->sequence_id = $vars['custom-numbers'] ? $vars['sequence_id'] : 0;
$this->number_format = $vars['custom-numbers'] ? $vars['number_format'] : '';
$this->flags = $vars['custom-numbers'] ? self::FLAG_CUSTOM_NUMBERS : $this->flags;
$this->number_format = $vars['number_format'];
$this->setFlag(self::FLAG_CUSTOM_NUMBERS, ($vars['custom-numbers']));
$this->noautoresp = !!$vars['noautoresp'];
$this->notes = Format::sanitize($vars['notes']);

Expand Down

0 comments on commit 52c9c59

Please sign in to comment.