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

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD