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

In Textline fieldtype, is being permitted the "Minimum length" and "Maximum length" to have negative values

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Low Low
    • Resolution: Fixed
    • Affects Version/s: 2015.12
    • Fix Version/s: QA tracked issues, 2015.12.1, 16.02
    • 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 43

      Description

      Steps to Reproduce
      • Create one content type with a textline (or textblock) fieldtype, where:
        Minimum length = -2 and
        Maximum length = -1
      • Save the content type - The content type is saved without any warning or error

        Issue Links

          Activity

          Hide
          Carlos Revillo added a comment -

          hi. i can work on this as i have some time now.
          First thing we could do is adding a "min" attribute to the input. That won't entirely solve it but then we could work on field validation...

          Show
          Carlos Revillo added a comment - hi. i can work on this as i have some time now. First thing we could do is adding a "min" attribute to the input. That won't entirely solve it but then we could work on field validation...
          Hide
          Bertrand Dunogier added a comment -

          One fix merged to ezsystems/repository-forms@master.

          The kernel one needs to be rebased before it is merged to ezpublish-kernel.

          Show
          Bertrand Dunogier added a comment - One fix merged to ezsystems/repository-forms@master . The kernel one needs to be rebased before it is merged to ezpublish-kernel.
          Hide
          Bertrand Dunogier added a comment -

          ezpublish-kernel PR merged to master.

          Show
          Bertrand Dunogier added a comment - ezpublish-kernel PR merged to master.
          Hide
          Bertrand Dunogier added a comment -

          It is indeed not very consistent, but there are other places where we have the same problem (try to add a field def without a value for the identifier, and you will get a tooltip as well).

          These are HTML5 / client side validations. It would be better if it was consistent across validations, but we won't fix it in this particular improvement.

          Show
          Bertrand Dunogier added a comment - It is indeed not very consistent, but there are other places where we have the same problem (try to add a field def without a value for the identifier, and you will get a tooltip as well). These are HTML5 / client side validations. It would be better if it was consistent across validations, but we won't fix it in this particular improvement.
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved
          tested on master

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved tested on master

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: