 |
vtiger The Honest Open Source CRM
|
| Previous topic :: Next topic |
| Author |
Message |
dartagnanlaf
Joined: 21 Sep 2006
Posts: 12
|
| Posted: Thu Sep 21, 2006 2:17 pm Post subject: Calendar Week View Action button displays improperly |
|
|
Bug: Display of Actions button in Calendar Week View
Error: Example: 1 event at 8am, 2 events at 9am. Action button shows up properly for 8am event, and 2nd 9am event. When mouse-over 1st 9am event however, it appears on the 8am event.
Reason: The id for the events is incorrect. The code calls getWeekEventLayer() for each hour, and creates id in each hour by the convention ::day::_::index-starting-at-0::. This leads to multiple items on the page with the same id.
Solution: Change id to ::day_::hour::_::index:: in Calendar/calendarLayout.php, function getweekEventLayer()
Original
Code: $arrow_img_name = 'weekevent'.$cal['calendar']->week_slice[$slice]->start_time->get_formatted_date().'_'.$i;
Edited
Code: $arrow_img_name = 'weekevent'.$cal['calendar']->week_slice[$slice]->start_time->get_formatted_date().'_'.$act[$i]->start_time->hour.'_'.$i;
|
|
| Back to top |
|
minnie
Joined: 06 Sep 2005
Posts: 299
Location: CHENNAI,INDIA
|
| Posted: Fri Sep 22, 2006 4:58 am Post subject: Calendar Week View Action button displays improperly |
|
|
Dear dartagnanlaf,
Thank you for your code. I'll update you after integrating the code in vtigerCRM.
Thanks & Regards,
Minnie. |
|
| Back to top |
|
| |
|