PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject_FormBuilder » Bug #6703

linkDisplayLevel does not work

Details

Submitted2006-02-06 10:23 UTC
Fromjmencia at alimarket dot es
Assignedjustinpatrin
StatusNo Feedback
PackageDB_DataObject_FormBuilder
PHP Version5.0.5
OSGNU/Linux
Roadmaps(Not assigned)

Comments

[2006-02-06 10:23 UTC] jmencia at alimarket dot es

Description:
------------
I think "linkDisplayLevel" flag does not work properly.
"_generateForm" method on FormBuilder.php generates a selectbox for each element in links array even if "linkDisplayLevel" is set to 0.

Perhaps, the PHP code in line 1108 on FormBuilder.php should be:
"...} elseif (isset($links[$key]) && $this->linkDisplayLev el > 0) { ..."

it's ok or not?

[2006-02-07 08:45 UTC] jmencia at alimarket dot es

then, what way have I of indicating FormBuilder that should show select boxes for link fields only when I want?

(sorry for my english...)