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 19:01 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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 47 + 17 = ?

 
 [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.

Comments

 [2005-08-23 21:01 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!