Skip to content

Commit c292981

Browse files
committed
fix(form_answer): fix fatal error
getSearchOptions does not longer exists, replaced by getSearchOptionsNew Signed-off-by: btry <tbugier@teclib.com>
1 parent 2802a78 commit c292981

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

inc/form_answer.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,11 @@ static function showForForm(PluginFormcreatorForm $form, $params = []) {
368368

369369
// prepare params for search
370370
$item = new PluginFormcreatorForm_Answer();
371-
$searchOptions = $item->getSearchOptions();
371+
$searchOptions = $item->getSearchOptionsNew();
372372
$filteredOptions = [];
373-
foreach ($searchOptions as $key => $value) {
374-
if (is_numeric($key) && $key <= 7) {
375-
$filteredOptions[$key] = $value;
373+
foreach ($searchOptions as $value) {
374+
if (is_numeric($value['id']) && $value['id'] <= 7) {
375+
$filteredOptions[$value['id']] = $value;
376376
}
377377
}
378378
$searchOptions = $filteredOptions;

0 commit comments

Comments
 (0)