Fix tasks list when some weekdays are disabled

This commit is contained in:
Francis Lachapelle
2016-10-07 12:08:40 -04:00
parent 75326e0194
commit c3d349e3c6
2 changed files with 14 additions and 4 deletions
+7
View File
@@ -1,3 +1,10 @@
3.2.1 (2016-10-DD)
------------------
Bug fixes
- [web] fixed tasks list when some weekdays are disabled
3.2.0 (2016-10-03)
------------------
+7 -4
View File
@@ -455,10 +455,13 @@ static NSArray *tasksFields = nil;
while ((newInfo = [currentInfos nextObject]))
{
// Skip components that appear on disabled weekdays
weekDay = iCalWeekDayString[[[newInfo objectForKey: @"startDate"] dayOfWeek]];
if ([enabledWeekDays count] && ![enabledWeekDays containsObject: weekDay])
continue;
if ([newInfo objectForKey: @"startDate"])
{
weekDay = iCalWeekDayString[[[newInfo objectForKey: @"startDate"] dayOfWeek]];
if ([enabledWeekDays count] && ![enabledWeekDays containsObject: weekDay])
// Skip components that appear on disabled weekdays
continue;
}
if ([fields containsObject: @"viewable"])
{