New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form doesn't fail nicely in CP if there are no fields #1757

jeremydouglas opened this Issue Jan 26, 2018 · 0 comments


None yet
3 participants

jeremydouglas commented Jan 26, 2018

Expected behaviour

I'm the type who like to hit 'save' very often. When I create a new form in the control panel, I usually enter a title, email address, then hit save. This saves the formset .yaml file properly, but viewing it in the control panel returns an error, because there are no fields yet.

This isn't preventing my work, but a case where it could be tightened up and explained better.

Actual behaviour

Returned an error

Steps to reproduce

  1. Create form
  2. Don't include fields, but just hit save
  3. Error is returned with viewing form in control panel:
Undefined index: fields 

Server Details

Operating System:
Web Server:
PHP Version:
Statamic Version:

Thanks for your work guys :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment