What steps will reproduce the problem?
1. Create a tree form using class EasyFormTree
2. The title field of the child nodes should have indents led by dashes e.g
Root Node
---- Child Node 1
---- Child Node 2
--------Child Node2
What is the expected output? What do you see instead?
The expected output is a tree structure as above. Instead,
the indenting dashes are separated by as below
Root Node
- - - - Child Node 1
- - - - Child Node 2
- - - - - - - -Child Node2
Solution:
Because the implementing element for this nodes (LabelText) will
call htmlentities and thus add the in place of spaces, there is no need to include prior to a rendering phase which causes
this issue.
Line 104 of EasyFormTree recommended to be as follows:
$treeNodeArray[$this->m_TitleField] = "+ ".str_repeat(" - - - -", $level)." ".$treeNodeArray[$this->m_TitleField];
Original issue reported on code.google.com by cog...@gmail.com on 10 Apr 2012 at 6:25
Original issue reported on code.google.com by
cog...@gmail.com
on 10 Apr 2012 at 6:25