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

Complex fields with jcrChildNodeProvider persists empty node when not touched

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.27
    • 6.2.18
    • None
    • None

      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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

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