Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Bug #5188 dateOptions callback broken by 0.18.0
Submitted: 2005-08-23 14:01 UTC Modified: 2006-12-16 02:16 UTC
From: df at india dot com Assigned: justinpatrin
Status: Closed Package: DB_DataObject_FormBuilder
PHP Version: 5.0.1 OS: Windows
Roadmaps: (Not assigned)    
Subscription  


 [2005-08-23 14: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.

Comments

 [2005-08-23 16:01 UTC] justinpatrin
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/DB_DataObject_FormBuilder Thanks for the report, I should have noticed this. This should be fixed in release 0.18.1.