Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5736

Complex fields with jcrChildNodeProvider persists empty node when not touched

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.3, 6.2.27
    • 6.2.18
    • None
    • None

    Description

      Steps to reproduce:
      1) in Resources app modify /contacts/dialogs/rename.yaml

      form:
        properties:
          jcrName:
            label: New name
            $type: textField
          upload:
            class: info.magnolia.ui.editor.UploadViewDefinition
            itemProvider:
              $type: jcrChildNodeProvider
          composite:
            $type: compositeField
            itemProvider:
              $type: jcrChildNodeProvider
            properties:
              city:
                label: city
                $type: textField
              country:
                label: country
                $type: textField
                
      

      2) invoke dialog on node and save dialog without touching fields

      Expectation (and old-fw behaviour): nothing happens

      Actual behaviour: empty subnodes are created within the node for fields

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                asiska Adam Siska
                asiska Adam Siska
                Nucleus
                Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 1.25d
                      1.25d