rockycubi / openbiz-cubi

Automatically exported from code.google.com/p/openbiz-cubi
0 stars 1 forks source link

Easyform Tree includes Html entities in values prior to rendering phase #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
if you use latest version of openbiz the render engine will display the value 
correct.
let me know if it has any more issues

Original comment by jixian@openbiz.me on 9 Jan 2013 at 1:33