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

Automatically compute FieldDefinition position

    Details

      Description

      Ref EZP-24568
      Position for FieldDefinitions need to be computed correctly, especially if it's left to 0.

      Position needs to be computed from the order FieldDefinitions are created in, unless the position has been forced with a defined value.

      Ideally positions need to be calculated on the client side.

        Issue Links

          Activity

          Hide
          Gunnstein Lye added a comment -

          https://jira.ez.no/browse/EZP-24991 looks like a duplicate.

          Show
          Gunnstein Lye added a comment - https://jira.ez.no/browse/EZP-24991 looks like a duplicate.
          Hide
          Gunnstein Lye added a comment - - edited

          Proposal:

          • New fielddefs should be created with position = max existing position + 1
          • When the position is the same, sort by create order identifier
          Show
          Gunnstein Lye added a comment - - edited Proposal: New fielddefs should be created with position = max existing position + 1 When the position is the same, sort by create order identifier
          Show
          Gunnstein Lye added a comment - - edited PR: https://github.com/ezsystems/repository-forms/pull/55
          Show
          Gunnstein Lye added a comment - Merged in master: https://github.com/ezsystems/repository-forms/commit/b8b67559330335ef45393b1c06e3bda22fc3348b
          Hide
          Rui Silva (Inactive) added a comment -

          Tested and approved by QA for master.

          Show
          Rui Silva (Inactive) added a comment - Tested and approved by QA for master.

            People

            • Assignee:
              Unassigned
              Reporter:
              Jérôme Vieilledent (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 5 hours, 25 minutes
                1d 5h 25m