boltforms icon indicating copy to clipboard operation
boltforms copied to clipboard

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

Open pcmsystemsltd opened this issue 8 years ago • 1 comments

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

  • The content type is always set as published, no matter what default status is set on the contenttypes.yml file.
  • If notifications are enabled the following error is thrown:

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

  • Relevant Bolt Version: [ 3.3 ]
  • Install type: [ Composer install ]
  • PHP version: [ 7.0 ]
  • Used web server: [ Apache ]

pcmsystemsltd avatar Aug 07 '17 14:08 pcmsystemsltd

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.

jadwigo avatar Oct 27 '17 07:10 jadwigo