Skip to content

New Features & Bug Fixes

Choose a tag to compare

@toonvandenbos toonvandenbos released this 09 Aug 18:20
· 431 commits to master since this release

New Features & Improvements

  • Validation. Yup. It's all covered :
    • Flexible fields are now validated as arrays, meaning rules such as min:2, max:5, ... are now working as expected
    • The rules of fields defined inside the Flexible's layouts are now also executed and their validation errors are correctly displayed. Validation is even working in nested Flexible fields.
  • Layouts can now show a confirmation prompt before deleting - #43
  • Flexible fields are now hidden on Index pages by default. No need to call hideFromIndex() every time anymore!
  • Layouts are now implementing ArrayAccess like Models.
  • You can now specify a maximum number of layouts

Bug fixes

  • Flexible fields now display their values correctly in Form and Detail views.
  • Layouts without title (which could be the case when using the field as a simple repeatable field) do not display an empty title element in Nova's UI ;
  • Applying rules(['required']) on a Flexible Field will now work as expected when no layouts have been added ;
  • DateTime fields should not throw an exception anymore when resolving or updating their value (take a look at #14 for more information).
  • Value resolver now can handle collections - #49