Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-25

Assigning a value to a node data only works when the node data is preceded by the @ sign

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1
    • 1.0
    • integration
    • None

    Description

      E.g. this would work:
      path.to.@mynode = 'foo'
      and would even automatically create the mynode property, should it be missing whilst
      path.to.mynode = 'foo'
      would fail, because currently it erroneously attempts to delegate the setting to the groovy metaclass mechanism. In other words, it tries to set the node data value on the MgnlGroovyNode instance itself and looks via reflection for a class field named after the node data.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgrilli Federico Grilli
              fgrilli Federico Grilli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD