Feng Forum

Support => Older versions => : Pet August 25, 2009, 07:53:05 PM

: Multiple Milestones on Calendar Overview not appearing
: Pet August 25, 2009, 07:53:05 PM
On the Overview (All) tab, I have 8 upcoming Milestones on one date on the calendar, as you can see in the 1st pic. The calendar shows 3 of them, and at the bottom of the day it says "5 more".

When I click on the 5 more link, it takes me to the day view, which only has room for 2 of them. See 2nd pic.  The other 6 are not visible at all. There are no scroll controls, nor does it appear that I can drag the separator to make more room to view the others. The Week view also only shows 2 of the 8.

: Re: Multiple Milestones on Calendar Overview not appearing
: alvarotm01 August 26, 2009, 03:29:33 PM
Hi
this happens because that 6 milestones are assigned to everybody or another user, and you are filtering calendar by yourself.

To fix this you can change line 240 of "application/models/project_milestones/ProjectMilestones.class.php" with this one
:
$assignedFilter = ' AND (`assigned_to_user_id` = '.$assignedUser->getId().' OR
(`id` IN (SELECT milestone_id FROM '.TABLE_PREFIX.'project_tasks WHERE `trashed_by_id` = 0 AND `milestone_id` > 0 AND `assigned_to_user_id` = ' . $assignedUser->getId() . ') OR
(`assigned_to_user_id` = 0 AND (`assigned_to_company_id` = '. $assignedUser->getCompanyId().' OR `assigned_to_company_id` = 0))))';

With this you will be able to see milestones assigned to everybody in calendar views when filtering by yourself (to view milestones assigned to another user you must change the filter).
: Re: Multiple Milestones on Calendar Overview not appearing
: Pet August 27, 2009, 12:55:48 PM
Ah yes, when I changed the filter from My Calendar to Everyone, they suddenly all showed up, thank you for that