Home » Database » DB_Table » Bug #9593
incorrect mapping
Details
| Submitted | 2006-12-10 14:57 UTC |
|---|---|
| From | mvonarx at tiscali dot ch |
| Assigned | wiesemann |
| Status | Closed |
| Package | DB_Table |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-12-10 14:57 UTC] mvonarx at tiscali dot ch
Description:
------------
according to HTML_QuickForm_hidden documentation the classconstructor expects 3 parameters
$elementName
$value
$attributes
On line 448 in DB_Table_QuickForm the constructor of HTML_QuickForm_hidden is called only with 2 parameters.
this produces following warning.
Warning: htmlspecialchars() expects parameter 1 to be string, array given in ..\pear\HTML\Common.php on line 150
Test script:
---------------
DB_Table_QuickForm 1.4.0:
case 'hidden':
$element =& HTML_QuickForm::createElement(
$col['qf_type'],
$elemname,
$col['qf_attrs']
);
should be changed to:
case 'hidden':
$element =& HTML_QuickForm::createElement(
$col['qf_type'],
$elemname,
'', // valueparameter
$col['qf_attrs']
);