Commit 603250a2 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #556 in ZP/z-push from...

Merge pull request #556 in ZP/z-push from bugfix/ZP-1238-resources-in-outlook-are-registered to develop

* commit '5b2ad7da':
  ZP-1238 Save Atendee->type in MAPI.
parents 341d1f01 5b2ad7da
...@@ -1430,7 +1430,7 @@ class MAPIProvider { ...@@ -1430,7 +1430,7 @@ class MAPIProvider {
$org[PR_EMAIL_ADDRESS] = isset($representingprops[$appointmentprops["sentrepresentingemail"]]) ? $representingprops[$appointmentprops["sentrepresentingemail"]] : $props[$appointmentprops["sentrepresentingemail"]]; $org[PR_EMAIL_ADDRESS] = isset($representingprops[$appointmentprops["sentrepresentingemail"]]) ? $representingprops[$appointmentprops["sentrepresentingemail"]] : $props[$appointmentprops["sentrepresentingemail"]];
$org[PR_SEARCH_KEY] = isset($representingprops[$appointmentprops["sentrepresentinsrchk"]]) ? $representingprops[$appointmentprops["sentrepresentinsrchk"]] : $props[$appointmentprops["sentrepresentinsrchk"]]; $org[PR_SEARCH_KEY] = isset($representingprops[$appointmentprops["sentrepresentinsrchk"]]) ? $representingprops[$appointmentprops["sentrepresentinsrchk"]] : $props[$appointmentprops["sentrepresentinsrchk"]];
$org[PR_RECIPIENT_FLAGS] = recipOrganizer | recipSendable; $org[PR_RECIPIENT_FLAGS] = recipOrganizer | recipSendable;
$org[PR_RECIPIENT_TYPE] = MAPI_TO; $org[PR_RECIPIENT_TYPE] = MAPI_TO; // TODO: shouldn't that be MAPI_ORIG ?
array_push($recips, $org); array_push($recips, $org);
...@@ -1449,14 +1449,14 @@ class MAPIProvider { ...@@ -1449,14 +1449,14 @@ class MAPIProvider {
$recip[PR_SEARCH_KEY] = $userinfo[0][PR_SEARCH_KEY]; $recip[PR_SEARCH_KEY] = $userinfo[0][PR_SEARCH_KEY];
$recip[PR_ADDRTYPE] = $userinfo[0][PR_ADDRTYPE]; $recip[PR_ADDRTYPE] = $userinfo[0][PR_ADDRTYPE];
$recip[PR_ENTRYID] = $userinfo[0][PR_ENTRYID]; $recip[PR_ENTRYID] = $userinfo[0][PR_ENTRYID];
$recip[PR_RECIPIENT_TYPE] = MAPI_TO; $recip[PR_RECIPIENT_TYPE] = isset($attendee->attendeetype) ? $attendee->attendeetype : MAPI_TO;
$recip[PR_RECIPIENT_FLAGS] = recipSendable; $recip[PR_RECIPIENT_FLAGS] = recipSendable;
} }
else { else {
$recip[PR_DISPLAY_NAME] = u2w($attendee->name); $recip[PR_DISPLAY_NAME] = u2w($attendee->name);
$recip[PR_SEARCH_KEY] = "SMTP:".$recip[PR_EMAIL_ADDRESS]."\0"; $recip[PR_SEARCH_KEY] = "SMTP:".$recip[PR_EMAIL_ADDRESS]."\0";
$recip[PR_ADDRTYPE] = "SMTP"; $recip[PR_ADDRTYPE] = "SMTP";
$recip[PR_RECIPIENT_TYPE] = MAPI_TO; $recip[PR_RECIPIENT_TYPE] = isset($attendee->attendeetype) ? $attendee->attendeetype : MAPI_TO;
$recip[PR_ENTRYID] = mapi_createoneoff($recip[PR_DISPLAY_NAME], $recip[PR_ADDRTYPE], $recip[PR_EMAIL_ADDRESS]); $recip[PR_ENTRYID] = mapi_createoneoff($recip[PR_DISPLAY_NAME], $recip[PR_ADDRTYPE], $recip[PR_EMAIL_ADDRESS]);
} }
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
class SyncAttendee extends SyncObject { class SyncAttendee extends SyncObject {
public $email; public $email;
public $name; public $name;
public $attendeestatus;
public $attendeetype;
function __construct() { function __construct() {
$mapping = array( $mapping = array(
......
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