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

Remove InvalidArgumentException when position of a FieldDefinition is 0

    XMLWordPrintable

    Details

      Description

      Currently, editing a ContentType with unordered FieldDefinitions (position=0) is allowed by the repository. However, viewing the same ContentType throws an InvalidArgumentException:

      Argument 'position' is invalid: '0' is wrong value in class FieldDefinition, an integer strictly greater than 0 is required.
      

      This exception is thrown in eZ/Publish/Core/Persistence/Legacy/Content/Type/Handler.php at line 285.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jerome.vieilledent-obsolete@ez.no Jérôme Vieilledent (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: