In "Account element" tree is copy but value is not copy

Description

1. open Account Element
2. click duplicate
3. save new record
=> tree is copy, when click a tree item, a error message is display
even reopen New account Element, tree is still here.

Environment

None

Attachments

1
  • 05 Apr 2014, 07:58 PM

Activity

Show:

Carlos Ruiz July 30, 2020 at 6:50 PM

Suggesting a simple possible solution, we could add a unique index on C_Element.AD_Tree_ID

Carlos Ruiz July 30, 2020 at 5:13 PM

Decreasing the priority as is a configuration mistake.

Layda Salas July 30, 2020 at 5:03 PM

Reproduced exactly as explains.

Tomáš Švikruha February 6, 2015 at 9:21 AM

I think that two thing should be definitely fixed:

  • One tree can be used only on one Account Element (globally on tree can be used only on one record, when tree is defined on 'header' record and childs are on 'line' records)

  • When nodes are inserting to the tree (PO.insert_tree), they should be inserted only for one specific tree, not for all trees by specific type as it is now - PO.insert_tree should be extended by parameter AD_Tree_ID which will ensure that nodes will be created only for specified tree

Just my opinion which is result by some days spent with implementing custom tree.

Tomáš Švikruha February 5, 2015 at 12:22 PM

Problem is as Carlos mentioned, you cant have multiple elements pointed to same tree, it's logical mistake.

Problem is that elements share same tree, and tree is rendered based on these records but these tree nodes are joined only to element values where they was created.

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Created April 5, 2014 at 7:58 PM
Updated July 30, 2020 at 6:50 PM