Skip to content

Commit

Permalink
fix(targetticket): display of selected category question
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Feb 12, 2020
1 parent 164d5b9 commit b571115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1166,10 +1166,10 @@ public function getQuestionsFromFormBySection($formId, $crit = []) {
return $items;
}

public static function dropdownForForm($formId, $crit, $name, $value) {
public static function dropdownForForm($formId, $crit, $name, $options) {
$question = new self();
$items = $question->getQuestionsFromFormBySection($formId, $crit);
Dropdown::showFromArray($name, $items, []);
Dropdown::showFromArray($name, $items, $options);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/targetbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ protected function showCategorySettings(PluginFormcreatorForm $form, $rand) {
],
'_category_question',
[
$this->fields['category_question']
'value' => $this->fields['category_question']
]
);
echo '</div>';
Expand Down

0 comments on commit b571115

Please sign in to comment.