statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

Form widget does not work 2.11.14 #2446

Open dannyuk1982 opened 4 years ago

dannyuk1982 commented 4 years ago

The form widget does not show entries. The below seems to fix it (although there is probably a better way)

In bundles/form/FormWidget.php line 28, change: 'fields' => $this->get('fields', []), to: 'fields' => $this->get('fields', $form->fields()),

also bundles/form/resources/views/widget.blade.php line 13, change <td><a href="{{ route('form.submission.show', [$form->name(), $submission['id']]) }}">{{ array_get($submission, $field) }}</a></td> to: <td><a href="{{ route('form.submission.show', [$form->name(), $submission['id']]) }}">{{ array_get($submission, $key) }}</a></td>