From: <p_h...@us...> - 2011-09-30 14:28:33
|
Author: p_herbert Date: Fri Sep 30 16:28:26 2011 New Revision: 36787 URL: http://svn.stylite.de/viewvc/egroupware?rev=36787&view=rev Log: esync/infolog plugin, complete status can now be set/reset Modified: trunk/infolog/inc/class.infolog_activesync.inc.php Modified: trunk/infolog/inc/class.infolog_activesync.inc.php URL: http://svn.stylite.de/viewvc/egroupware/trunk/infolog/inc/class.infolog_activesync.inc.php?rev=36787&r1=36786&r2=36787&view=diff ============================================================================== --- trunk/infolog/inc/class.infolog_activesync.inc.php (original) +++ trunk/infolog/inc/class.infolog_activesync.inc.php Fri Sep 30 16:28:26 2011 @@ -400,14 +400,15 @@ break; case 'info_status': // 0 or 1 in AS --> do NOT change infolog status, if it maps to identical completed boolean value - if (in_array($infolog[$attr], self::$done_status) !== (boolean)$message->key) + if (in_array($infolog[$attr], self::$done_status) !== (boolean)$message->$key) { - $infolog[$attr] = $message->key ? 'done' : 'not-started'; + $infolog[$attr] = $message->$key ? 'done' : 'not-started'; + if (!(boolean)$message->$key) $infolog['info_percent'] = 0; } break; case 'info_priority': // AS does not know 3=Urgent (only 0=Low, 1=Normal, 2=High) - if ($infolog[$attr] == 3 && $message->key == 2) break; // --> do NOT change Urgent, if AS reports High + if ($infolog[$attr] == 3 && $message->$key == 2) break; // --> do NOT change Urgent, if AS reports High // fall through default: $infolog[$attr] = $message->$key; |