verbb / field-manager

Field Manager is a Craft CMS plugin to make it easy to manage your fields and field groups.
MIT License
198 stars 16 forks source link

Field form validation errors are swallowed and data is being dismissed #97

Closed buesing closed 10 months ago

buesing commented 1 year ago

Describe the bug

When creating an invalid new field (for example a matrix field with no block types) and trying to save, the dialog is being closed, no error is displayed and all the form data is thrown away. This has cost me some time when creating complex matrix fields, when one of the blocks has an invalid configuration the whole field is deleted upon save.

Steps to reproduce

  1. Go to field manager tab
  2. Click "New Field"
  3. Type some random name
  4. Select Matrix type
  5. Click save
  6. Observe no field saved, no error shown

Craft CMS version

Craft Pro 4.4.16

Plugin version

3.0.7

Multi-site?

No

Additional context

All plugins:

Amazon S3 | 2.0.3 Field Manager 3.0.7 Neo 3.8.2 Redactor 3.0.4

engram-design commented 1 year ago

Fixed for the next release. To get this early, run composer require verbb/field-manager:"dev-craft-4 as 3.0.7".

engram-design commented 10 months ago

Fixed in 3.0.8