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

Missing validation for form field name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Confirmed
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 2.5.2, 3.0.0-dev
    • Fix Version/s: None
    • Component/s: Form Builder
    • Labels:

      Description

      Steps:

      1. Go to Forms.
      2. Create form.
      3. Add e.g. Single line input field.
      4. Open Settings.
      5. Leave the Name field empty.
      6. Submit.
      7. Publish form.

      Actual result: Exception occurs

      An exception occurred while executing 'INSERT INTO `ezform_fields` (form_id, identifier, name) VALUES(?, ?, ?)' with params [12, "single_line", null]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null [in vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:103] 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              katarzyna.zawada@ez.no Katarzyna Zawada
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: