EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Error when configuring form layout to use tabs

Open laytoneverson opened this issue 8 years ago • 1 comments

If this is a BUG REPORT:

  • When customizing my form layout I receive an error when adding tabs to the form or the edit key under easy_admin > entities > EntityName > form||edit > fields:
    Notice: Undefined index: property
  • EasyAdmin version 1.17.11, Symfony version 4.0.4, Php version 7.1.13
  • My Config:
easy_admin:
    ...
    entities:
       ...
        Website:
            ...
            edit:
                title: "Edit %%entity_label%%"
               ### This config does not work (Adding a label attribute does not fix it)
                fields:
                  - { type: tab }
                  - 'websiteName'
                  - { type: tab }
                  - 'slug'

                ### This config works: 
                fields:
                  - 'websiteName'
                  - 'slug'
      ...

laytoneverson avatar Feb 26 '18 22:02 laytoneverson

I have the same problem like you make a

composer update

to pass your easyadminbundle to 1.17.11 -> 1.17.12

that's solve, for me, the problem with tabs

tolbon avatar Feb 28 '18 14:02 tolbon