Skip to content

Commit

Permalink
fix(form_answer): fix fatal error
Browse files Browse the repository at this point in the history
getSearchOptions does not longer exists, replaced by getSearchOptionsNew

Signed-off-by: btry <tbugier@teclib.com>
  • Loading branch information
btry committed Jul 16, 2018
1 parent 2802a78 commit c292981
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/form_answer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,11 @@ static function showForForm(PluginFormcreatorForm $form, $params = []) {

// prepare params for search
$item = new PluginFormcreatorForm_Answer();
$searchOptions = $item->getSearchOptions();
$searchOptions = $item->getSearchOptionsNew();
$filteredOptions = [];
foreach ($searchOptions as $key => $value) {
if (is_numeric($key) && $key <= 7) {
$filteredOptions[$key] = $value;
foreach ($searchOptions as $value) {
if (is_numeric($value['id']) && $value['id'] <= 7) {
$filteredOptions[$value['id']] = $value;
}
}
$searchOptions = $filteredOptions;
Expand Down

0 comments on commit c292981

Please sign in to comment.