| @@ -256,12 +256,14 @@ | ||
| 256 | 256 | */ |
| 257 | 257 | protected function setOptions() |
| 258 | 258 | { |
| 259 | 259 | if (in_array('options', $this->with)) { |
| 260 | - $options = Arr::get($this->field, 'options', []); | |
| 260 | + $options = Arr::get($this->field, 'options', []); | |
| 261 | 261 | |
| 262 | - if(!$options) { | |
| 263 | - $newOptions = Arr::get($this->field, 'settings.advanced_options', []); | |
| 262 | + if(!$options) { | |
| 263 | + $newOptions = \FluentForm\App\Helpers\Helper::flattenAdvancedOptions( | |
| 264 | + Arr::get($this->field, 'settings.advanced_options', []) | |
| 265 | + ); | |
| 264 | 266 | |
| 265 | 267 | if( |
| 266 | 268 | !$newOptions |
| 267 | 269 | && Arr::get($this->field,'element') == 'multi_payment_component' |