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

Activity

Show:
Tomáš Švikruha
February 5, 2015, 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.

Tomáš Švikruha
February 6, 2015, 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.

Layda Salas
July 30, 2020, 5:03 PM

Reproduced exactly as explains.

Carlos Ruiz
July 30, 2020, 5:13 PM

Decreasing the priority as is a configuration mistake.

Carlos Ruiz
July 30, 2020, 6:50 PM

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

Assignee

Hiep Lq

Reporter

Hiep Lq

Labels

Tested By

None

Components

Affects versions

Priority

Minor
Configure