test to cast PERCENT-COMPLETE as int to prevent 0 value to be set to nothing

This commit is contained in:
Christian Binder 2009-12-30 10:36:25 +00:00
parent 43190660a4
commit 5fd473c986

View File

@ -207,7 +207,7 @@ class infolog_ical extends infolog_bo
$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('PERCENT-COMPLETE',(int)$taskData['info_percent']);
$vevent->setAttribute('PRIORITY',$this->egw_priority2vcal_priority[$taskData['info_priority']]);