Skip to content

Commit

Permalink
fix(targetticket,targetchange): error when displaying tag from questi…
Browse files Browse the repository at this point in the history
…on settings

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Mar 23, 2021
1 parent 015ff54 commit 3c1ed6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/abstracttarget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,9 @@ protected function showPluginTagsSettings(PluginFormcreatorForm $form, $rand) {
echo '<tr>';
echo '<td width="15%">' . __('Ticket tags', 'formcreator') . '</td>';
echo '<td width="25%">';
Dropdown::showFromArray('tag_type', self::getEnumTagType(),
Dropdown::showFromArray(
'tag_type',
self::getEnumTagType(),
[
'value' => $this->fields['tag_type'],
'on_change' => 'change_tag_type()',
Expand Down Expand Up @@ -1273,7 +1275,7 @@ function change_tag_type() {
'fieldtype' => ['tag'],
],
'_tag_questions',
explode(',', $this->fields['tag_questions']),
$this->fields['tag_questions'],
[
'multiple' => true,
]
Expand Down

0 comments on commit 3c1ed6a

Please sign in to comment.