Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2573

Hardcoded field names in form builder template

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4.0-beta1
    • Component/s: Form Builder
    • Labels:
      None

      Description

      Template file ezplatform-form-builder/src/bundle/Resources/views/themes/standard/form_builder/default_form_view.html.twig has hardcoded field names inside, which leads to 500 errors when there is a content type with form field without title or form field identifiers:

      An exception has been thrown during the rendering of a template ("Argument '$fieldIdentifier' is invalid: 'title' field not present on content #60 'Name'").

      Steps to reproduce:
      1. Clean installation of eZ Platform 2.3
      2. Create a new Content Type: "Custom Form" with fields:

      Name Identifier Type
      Name name Single line
      My Form myform Form

      3. Create content with "Custom Form" Content Type.
      4. Create new Landing Page, add Embed block, point to a newly created "Custom Form" Content Object.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mateusz.bieniek@ez.no Mateusz Bieniek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: