Object template helper button calculates iteration not only on depth

Description

This bug comes from the community:

https://community.datagerry.com/t/docapi-problem-with-more-than-3-reference-field/168/3

Description:
When creating a document template, template variables of the type definitions can be embedded. Field references to objects/types are resolved, so that cross-references can be made over several types. The maximum depth which referenced references can achieve is limited to 3 levels.

Misbehavior:
The limitation is not only applied to the reference depth but also to the maximum number of resolved items in the drop-down structure.

Wanted behavior:
The limitation should only affect the depth but not the number of elements in the drop-down.

Reproduce:

  • Create a type with more than 3 reference fields.

  • Create a DocAPI Template

  • At the point: "Tempalte Content" press CMDB Data -> Object Template Data

 

Reason:
In the Template Helper Service of the frontend the limitation of depth as well as the number of elements is used.
Here already on dropdown "root" level only the field is displayed. We need another check, which resolves the list completely and stops after the 3rd iteration.

Environment

None

Activity

Show:
Michael Batz
November 18, 2020, 10:35 AM

Changed the Jira Workflow from DATAGERRY -> DATAGERRY 2.0

Michael Batz
September 2, 2020, 7:13 AM

Cherry-picked that to the version-1.3 branch.

Michael Batz
September 2, 2020, 7:09 AM

Made the bugfix. We need to cherry-pick that to the version-1.3 branch

Michael Batz
September 2, 2020, 7:00 AM

This seems to be the same logical error as in

Done

Assignee

Michael Batz

Reporter

Mark Heumüller

Labels