"added somehow missing support for PERCENT-COMPLETE attribute, which exists in InfoLog an iCal vTodo"

This commit is contained in:
Ralf Becker 2008-08-07 06:11:13 +00:00
parent 38bb1c75ca
commit 5fccf96345

View File

@ -85,6 +85,7 @@ class vcalinfolog extends boinfolog
$vevent->setAttribute('STATUS',$this->status2vtodo($taskData['info_status']));
// we try to preserv the original infolog status as X-INFOLOG-STATUS, so we can restore it, if the user does not modify STATUS
$vevent->setAttribute('X-INFOLOG-STATUS',$taskData['info_status']);
$vevent->setAttribute('PERCENT-COMPLETE',$taskData['info_percent']);
$vevent->setAttribute('PRIORITY',$this->egw_priority2vcal_priority[$taskData['info_priority']]);
if (!empty($taskData['info_cat']))
@ -214,6 +215,9 @@ class vcalinfolog extends boinfolog
unset($uid_task);
}
break;
case 'PERCENT-COMPLETE':
$taskData['info_percent'] = (int) $attributes['value'];
break;
}
}
# the horde ical class does already convert in parsevCalendar