mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
handle info_des correctly for android, prevent destroying info_des on IOS-devices
This commit is contained in:
parent
0f7ca734e3
commit
61b99bc32e
@ -410,7 +410,13 @@ class infolog_zpush implements activesync_plugin_write
|
|||||||
switch ($attr)
|
switch ($attr)
|
||||||
{
|
{
|
||||||
case 'info_des':
|
case 'info_des':
|
||||||
$infolog[$attr] = $this->backend->messagenote2note($message->body, $message->rtf, $message->airsyncbasebody);
|
if (is_null($message->asbody)) $message->asbody = new SyncBaseBody();
|
||||||
|
// only change info_des, if one given, as iOS5 skips description in ChangeMessage
|
||||||
|
// --> we ignore empty / not set description, so description get no longer lost, but you cant empty it via eSync
|
||||||
|
if (($description = $this->backend->messagenote2note($message->body, $message->rtf, $message->asbody)))
|
||||||
|
{
|
||||||
|
$infolog[$attr] = $description;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'info_cat':
|
case 'info_cat':
|
||||||
|
Loading…
Reference in New Issue
Block a user