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

Matrix field type forms overwrite values because of incorrect index

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 2.5.0-beta2
    • Fix Version/s: 2.5.0-rc2
    • Component/s: None
    • Labels:

      Description

      Steps to reproduce.

      1. Create Content Type with Matrix field (min. columns set to 3).
      2. Go to create Content form.
      3. Fill Matrix field with data (do not add any new rows).
      4. Remove non-last row (ie. first or second).
      5. Add empty row.
      6. Try to save (trigger validation).

      Result:
      Value of last non-empty row is lost.

      Expected result:
      Values remain unaffected by failed validation.

        Activity

        Show
        Maciej Tyrała added a comment - PR: https://github.com/ezsystems/ezplatform-matrix-fieldtype/pull/9 merged: https://github.com/ezsystems/ezplatform-matrix-fieldtype/commit/14e265d334a493b742cd22544f44693be114dcc2

          People

          • Assignee:
            Unassigned
            Reporter:
            Sławomir Uchto
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: