Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25690

In Textline fieldtype is being allowed the "Default value" to be bigger than "Maximum length"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: 16.02
    • Fix Version/s: QA tracked issues
    • Labels:
    • Environment:

      Operating System: Debian 8
      PHP Version: 5.6.14-0+deb8u1
      Database and version: Mysql 5.5.46-0+deb8u1
      Browser (and version): Firefox 44

      Description

      Steps to Reproduce

      1) Create one content type with a textline (or textblock) fieldtype, where:
      Maximum length = 4
      Default value = This is a test
      2) Save the content type

      The content type is saved without any warning or error. It shouldn't.

      But if we edit and save the content type again, then the validation is triggered. So this lack of validation seems to be on the creation process. Not on the update.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: