Home » Date and Time » Calendar » Bug #3300
Extending decorator payload functionality to Months
Details
| Request #3300 | Extending decorator payload functionality to Months |
|---|---|
| Submitted | 2005-01-26 13:56 UTC |
| From | ta5ae at fast-email dot com |
| Assigned | quipo |
| Status | No Feedback |
| Package | Calendar |
| PHP Version | 4.3.9 |
| OS | Win XP Prof |
| Roadmaps | (Not assigned) |
Comments
[2005-01-26 13:56 UTC] ta5ae at fast-email dot com
Description:
------------
I tried to extend the 'Passing a Selection Payload with a Decorator', example 11 from days to months.
However, if you pass an array of custom decorators objects as a selection when building a month, it ignores the selected days.
The reason seems to be that, in the setSelection method, line 103, Month.php, only calendar_day or calendar_decorator are selected.
if ( $class == 'calendar_day' || $class == 'calendar_decorator' )
Would it be possible to remove this check? Other date units seem to be ok without it. Or maybe extend it to check for the parent's class, as a compromise?