October: The layout of tab is crashes when I add a (grouped) repeater item

Created on 14 Sep 2018  路  4Comments  路  Source: octobercms/october

Expected behavior

good

Actual behavior

issue

Reproduce steps
  1. Extend a form with some fields (http://octobercms.com/docs/plugin/extending#extending-backend-form).
  2. After that add single or gouped repeater item.
October build

442

Question

Most helpful comment

Event::listen('backend.form.extendFields', function ($widget) {
    if ($widget->isNested) {
        return;
    }
});

All 4 comments

Event::listen('backend.form.extendFields', function ($widget) {
    if ($widget->isNested) {
        return;
    }
});

@gergo85 or @seanthepottingshed could you guys find relevant places in the documentation to add the following:

> **Note:** When extending the form, you should check to see if `$formWidget->isNested === false` as the Repeater FormWidget includes nested Form widgets which can cause your changes to be made in unexpected places.

@seanthepottingshed Thank you for your answer!

Was this page helpful?
0 / 5 - 0 ratings