MantisBT - v2.2 Release (Closed)
View Issue Details
0000631v2.2 Release (Closed)[All Projects] Generalpublic2010-11-20 02:492010-12-19 13:19
Reporteropto 
Assigned Tocaseydk 
PriorityhighSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version2.2 
Summary0000631: Thunderbird cannot display ical feed, incl. patch
Descriptiontask start and task end have the same UID -> no display in TB.

see http://forums.web2project.net/viewtopic.php?p=8036#8036
Additional Informationpatch:

=== verändert Datei classes/w2p/API/iCalendar.class.php
--- classes/w2p/API/iCalendar.class.php 2010-11-20 11:28:25 +0000
+++ classes/w2p/API/iCalendar.class.php 2010-11-20 11:41:08 +0000
@@ -20,7 +20,7 @@
     public static function formatCalendarItem($calendarItem, $module_name) {
         global $AppUI;
         $name = $calendarItem['name'];
- $uid = $module_name.'_'.$calendarItem['id'];
+ if (isset( $calendarItem['UID'] )) $uid= $calendarItem['UID']; else $uid = $module_name.'_'.$calendarItem['id'];
         $description = '';
         $attachments = '';
 

=== verändert Datei modules/tasks/tasks.class.php
--- modules/tasks/tasks.class.php 2010-11-20 11:28:25 +0000
+++ modules/tasks/tasks.class.php 2010-11-20 11:41:08 +0000
@@ -2272,8 +2272,8 @@
         //TODO: A user should be able to select if they get distinct start/end dates or two tasks for each task.
         foreach ($taskList as $taskItem) {
             //$taskArray[] = $taskItem;
- $taskArray[] = array_merge($taskItem, array('endDate' => $taskItem['startDate'], 'name' => 'Start: ' . $taskItem['name']));
- $taskArray[] = array_merge($taskItem, array('startDate' => $taskItem['endDate'], 'name' => 'End: ' . $taskItem['name']));
+ $taskArray[] = array_merge($taskItem, array('endDate' => $taskItem['startDate'], 'name' => 'Start: ' . $taskItem['name'], 'UID' => 'tasks_'. $taskItem['id'] .'S'));
+ $taskArray[] = array_merge($taskItem, array('startDate' => $taskItem['endDate'], 'name' => 'End: ' . $taskItem['name'], 'UID' => 'tasks_'. $taskItem['id'] .'E'));
         }
 
         return $taskArray;
TagsNo tags attached.
Attached Files

Notes
(0001354)
opto   
2010-11-20 04:06   
(Last edited: 2010-11-20 04:08)
the following change in CTask->getTaskList sets the updatedDate of the VEVENT (DTSTAMP) to the last update date of the db entry, which makes more sense in my opinion.

At the moment, the updateddate is the creation date of the ical feed.
If we use the db updatedate instead, we can later use this for ical 2 way sync.


// old $q->addQuery("'".$q->dbfnNowWithTZ()."'" . ' as updatedDate');
//get updatedDate from db
        $q->addQuery('task_updated as updatedDate');

(0001394)
caseydk   
2010-12-03 22:43   
Resolved as described in r1510 & 1511
(0001456)
caseydk   
2010-12-19 13:19   
In v2.2 release.

Issue History
2010-11-20 02:49optoNew Issue
2010-11-20 04:06optoNote Added: 0001354
2010-11-20 04:08optoNote Edited: 0001354
2010-11-24 23:35caseydkProjectv2.1 Release (Closed) => v2.2 Release (Closed)
2010-11-24 23:46caseydkPrioritynormal => high
2010-12-03 12:35caseydkStatusnew => assigned
2010-12-03 12:35caseydkAssigned To => caseydk
2010-12-03 22:43caseydkNote Added: 0001394
2010-12-03 22:43caseydkStatusassigned => resolved
2010-12-03 22:43caseydkResolutionopen => fixed
2010-12-19 13:19caseydkNote Added: 0001456
2010-12-19 13:19caseydkStatusresolved => closed
2010-12-19 13:19caseydkFixed in Version => 2.2