Issues

ZF-7403: unable to prevent the escaping of options using Zend_Form_Element_Multiselect

Description

I have a set of options that is tree-like in nature - in this case personnel in an organisation. I need to display the tree structure in a multi select field, which would be easy to do by simply appending spaces according to the depth of each individual node. I have prepared my options array so that it looks as follows:

array( '1' => 'level 0 node', '2' => '  level 1 node', '3' => '    level 2 node' )

Incase that doesnt come out - I have used the   character twice to indent each level - 2 spaces to indent level 1, 4 spaces to indent level 2 and so on.

I have added the setAttrib('escape', false) clause to my multiselect, but while following the code through it became clear that the escape value never gets passed to the actual viewhelper, so my options come out escaped - i.e. instead of seeing spaces, I see a series of   next to each option in the multi select list.

To be clear; I can successfully set the escape value to false (as it's true by default), but that does not get passed through to the ViewHelper.

Comments

See related issue. Not an issue.