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

Missing validation for form field name

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 2.5.2, 3.0.x-dev
    • Form Builder

    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

        Activity

          People

            Unassigned Unassigned
            katarzyna.zawada@ibexa.co Katarzyna Zawada
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: