Commit 6af53f58 authored by Manfred Kutas's avatar Manfred Kutas

ZP-1098 Set native body type to plain if it is undefined for

appointments.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 622f9323
......@@ -312,7 +312,13 @@ class MAPIProvider {
}
if (!isset($message->nativebodytype)) $message->nativebodytype = $this->getNativeBodyType($messageprops);
if (!isset($message->nativebodytype)) {
$message->nativebodytype = $this->getNativeBodyType($messageprops);
}
elseif ($message->nativebodytype == SYNC_BODYPREFERENCE_UNDEFINED) {
ZLog::Write(LOGLEVEL_INFO, "MAPIProvider->getAppointment(): native body type is undefined. Set it to SYNC_BODYPREFERENCE_PLAIN.");
$message->nativebodytype = SYNC_BODYPREFERENCE_PLAIN;
}
// If the user is working from a location other than the office the busystatus should be interpreted as free.
if (isset($message->busystatus) && $message->busystatus == fbWorkingElsewhere) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment