diff --git a/inc/form_answer.class.php b/inc/form_answer.class.php index 350dcc0e1..a113edae8 100644 --- a/inc/form_answer.class.php +++ b/inc/form_answer.class.php @@ -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;