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

Bug #1440 bug in Week class in setSelection
Submitted: 2004-05-19 12:50 UTC
From: kick_tisho at mail dot bg Assigned: quipo
Status: Closed Package: Calendar
PHP Version: 4.3.4 OS: Win 2000 Pro
Roadmaps: (Not assigned)    
Subscription  


 [2004-05-19 12:50 UTC] kick_tisho at mail dot bg
Description: ------------ When i try to use Decorator Class with Week object i found the following bug in Week.php in class CALENDAR_WEEK in method setSelection. Reproduce code: --------------- foreach ($this->children as $key => $child) { if ($child->thisDay() == $sDate->thisDay() && $child->thisMonth() == $sDate->thisMonth()) { $this->children[$key]->setSelected(); must finish with $sDate->setSelected(); $this->children[$key] = $sDate; instead of $this->children[$key]->setSelected(); Expected result: ---------------- the error was Fatal error: Call to undefined function: getentry() in P:\winCVS\projectname\calend\views\week.php on line 62

Comments

 [2004-05-19 13:07 UTC] quipo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. This bug was fixed in CVS a month ago [1]. We'll roll out a new release shortly. [1] http://cvs.sourceforge.net/viewcvs.py/pearcalendar/calendar/Week.php?rev=1.19&view=markup