Skip to content

Commit

Permalink
fix(question): update of parameters broken
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 27, 2020
1 parent 9b7a692 commit 1418859
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public function setRequired($isRequired) {
* @param array $input parameters
*/
public function updateParameters($input) {
if (!isset($this->fields['fieldtype'])) {
if (!isset($input['fieldtype'])) {
return;
}

Expand Down
1 change: 0 additions & 1 deletion tests/src/CommonTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ protected function getQuestion($input = [], $sectionInput = [], $formInput = [])
$question = new \PluginFormcreatorQuestion();
$question->add($input);
$question->getFromDB($question->getID());
$question->updateParameters($input);

return $question;
}
Expand Down

0 comments on commit 1418859

Please sign in to comment.