Skip to content

Duplicating a tree #392

@RT-DIBA

Description

@RT-DIBA

Describe the bug
When duplicating a tree there two behaviours that doesn’t seem to work properly:

  1. Just after duplicate the tree, the save button appears disabled at the General information tab, but the same button appears enabled at the Tree structure tab.
  2. Related to previous point trying different cases of saving info produce different results:
    a. Changing data from General Information tab this enables the save button, but when saving, only saves the general information but not the tree structure.
    b. Changing data from General Information tab and saving from Tree structure tab saves all the tree properly (general information and structure)
    To summarize this second point, the behaviour of save button is different depending on the tab. On the General information tab the save button only save the general information but at the Tree structure tab, the save button save all the tree (structure + general information)

To Reproduce
Steps to reproduce the behavior:
Steps to reproduce the behaviour:

  1. Duplicate a tree
  2. See how the save button is disabled at General information tab and enabled at Tree Structure tab.
  3. Do some changes only at general information and save.
  4. Reopen de tree and see how only general information has been saved but not the tree structure.
  5. Try to make some changes at both tabs (General Information and Tree Structure) and save from Tree Structure tab.
  6. Reopen de tree and see how general information and tree structure had been saved.

Expected behavior
When duplicate a tree all the save buttons are enabled (because all the tree must be saved).
The save button should have the save behavior at the General information tab and Tree Structure tab, that is, if there are changes unsaved on the general information and tree structure, the save button will save all the unsaved changes.

Screenshots

Image Image Image

These three screenshots show how when duplicating a tree, the save button at General Information tab is disable and enabled at Tree Structure Tab.

Image Image Image

These three screenshots show how after duplicate a tree, some change are made on field “Name” and saved properly but not the tree structure, that appears empty.

Desktop (please complete the following information):
• OS: Ubuntu
• Browser Chrome

Additional context
Version 1.2.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions