mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 02:18:28 +02:00
esync/infolog plugin, complete status can now be set/reset
This commit is contained in:
parent
c170e880e3
commit
e34de4afe8
@ -400,14 +400,15 @@ class infolog_activesync implements activesync_plugin_write
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'info_status': // 0 or 1 in AS --> do NOT change infolog status, if it maps to identical completed boolean value
|
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;
|
break;
|
||||||
|
|
||||||
case 'info_priority': // AS does not know 3=Urgent (only 0=Low, 1=Normal, 2=High)
|
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
|
// fall through
|
||||||
default:
|
default:
|
||||||
$infolog[$attr] = $message->$key;
|
$infolog[$attr] = $message->$key;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user