Home » Date and Time » Calendar » Bug #1440
bug in Week class in setSelection
Details
| 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) |
Comments
[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