Uploaded image for project: 'Magnolia Data Module (closed)'
  1. Magnolia Data Module (closed)
  2. MGNLDATA-249

Renaming existing node to a substring od the former name only affects the name property, but not the node name itself.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 1.7.10
    • 1.6.5, 1.7.8

      Reproduce the problem:

      • Go the the contacts type in data module
      • Open the dialog of "JMustermann"
      • Rename the name field to a substring: JMuster
        Result:
        The property "name" was changed, but the node name itself is unchanged.
        (DataModule_ReanmeToSubstring.jpg)

      Problem source:
      info.magnolia.module.data.dialogs.DataDialog.getNewNodeName()
      Detecting the new node name fails to the else statement:

      if(this.create ||  !this.nodeName.startsWith(name)){
        name = Path.getUniqueLabel(hm, this.path, name);
      }
      else{
        name = this.nodeName;
      }
      

        Acceptance criteria

              rkovarik Roman Kovařík
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: