bolt / boltforms

Bolt 3 Forms extension - Symfony interface and API for Bolt
http://bolt.cm
GNU General Public License v3.0
52 stars 57 forks source link

[BUG] [BoltForms 4] Saving to content type not working properly #170

Open pcmsystemsltd opened 7 years ago

pcmsystemsltd commented 7 years ago

When saving a form to a content type the content type is saved correctly but two things happen:

Twig_Error_Runtime in Template.php line 230: An exception has been thrown during the rendering of a template ("Bolt\Extension\Bolt\BoltForms\Config\Form\FieldOptionsBag ") in "@BoltForms/email/_blocks.twig" at line 4.

Details

jadwigo commented 6 years ago

If you want to save an item as draft (or similar) you should be able to add an hidden field to your configuration for the status:

        status:
            type: hidden
            options:
                label: false
                attr:
                    value: draft

The error is probably another issue.