PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject_FormBuilder » Bug #5188

dateOptions callback broken by 0.18.0

Details

Submitted2005-08-23 19:01 UTC
Fromdf at india dot com
Assignedjustinpatrin
StatusClosed
PackageDB_DataObject_FormBuilder
PHP Version5.0.1
OSWindows
Roadmaps(Not assigned)

Comments

[2005-08-23 19:01 UTC] df at india dot com

Description:
------------
The dateOptions callback method (and possibly others) seem to be broken with the latest update (0.18.0)

When I implement the callback method in my DO, it never gets called because the "is_callable" function from "QuickForm.php"'s "_createDateElement" method returns false due to the first parameter in the array being empty.

The problem appears to be in the DB_DataObject_FormBuilder constructor when "$this->dateOptionsCallback" is being set.

$this->dateOptionsCallback= array(&$this->_fb->_do, 'dateOptions');

Changing it to this:

$this->dateOptionsCallback = array(&$do, 'dateOptions');

makes it work, since "&$this->_fb->_do" appears empty.