Commit c1390b04 authored by mku's avatar mku

ZP-216 #comment Properties PR_SENT_REPRESENTING_* should always be set when...

ZP-216 #comment Properties PR_SENT_REPRESENTING_* should always be set when creating calendar item on a mobile   #time 15m

git-svn-id: https://z-push.org/svn/z-push/trunk@1432 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent b4517ea3
...@@ -319,6 +319,8 @@ class MAPIMapping { ...@@ -319,6 +319,8 @@ class MAPIMapping {
"sourcekey" => PR_SOURCE_KEY, "sourcekey" => PR_SOURCE_KEY,
"representingentryid" => PR_SENT_REPRESENTING_ENTRYID, "representingentryid" => PR_SENT_REPRESENTING_ENTRYID,
"representingname" => PR_SENT_REPRESENTING_NAME, "representingname" => PR_SENT_REPRESENTING_NAME,
"sentrepresentingemail" => PR_SENT_REPRESENTING_EMAIL_ADDRESS,
"sentrepresentingaddt" => PR_SENT_REPRESENTING_ADDRTYPE,
"reminderset" => "PT_BOOLEAN:PSETID_Common:0x8503", "reminderset" => "PT_BOOLEAN:PSETID_Common:0x8503",
"remindertime" => "PT_LONG:PSETID_Common:0x8501", "remindertime" => "PT_LONG:PSETID_Common:0x8501",
"meetingstatus" => "PT_LONG:PSETID_Appointment:0x8217", "meetingstatus" => "PT_LONG:PSETID_Appointment:0x8217",
......
...@@ -1120,18 +1120,20 @@ class MAPIProvider { ...@@ -1120,18 +1120,20 @@ class MAPIProvider {
$props[$appointmentprops["isrecurring"]] = false; $props[$appointmentprops["isrecurring"]] = false;
} }
//always set the PR_SENT_REPRESENTING_* props so that the attendee status update also works with the webaccess
if (!isset($props[$appointmentprops["representingentryid"]])) {
$props[$appointmentprops["representingname"]] = Request::GetAuthUser();
$props[$appointmentprops["sentrepresentingemail"]] = Request::GetAuthUser();
$props[$appointmentprops["sentrepresentingaddt"]] = "ZARAFA";
$props[$appointmentprops["representingentryid"]] = mapi_createoneoff(Request::GetAuthUser(), "ZARAFA", Request::GetAuthUser());
}
// Do attendees // Do attendees
if(isset($appointment->attendees) && is_array($appointment->attendees)) { if(isset($appointment->attendees) && is_array($appointment->attendees)) {
$recips = array(); $recips = array();
//open addresss book for user resolve //open addresss book for user resolve
$addrbook = mapi_openaddressbook($this->session); $addrbook = mapi_openaddressbook($this->session);
//set the PR_SENT_REPRESENTING_* props so that the attendee status update also works with the webaccess
if (!isset($props[$appointmentprops["representingentryid"]])) {
$props[$appointmentprops["representingname"]] = Request::GetAuthUser();
$props[$appointmentprops["representingentryid"]] = mapi_createoneoff(Request::GetAuthUser(), "ZARAFA", Request::GetAuthUser());
}
foreach($appointment->attendees as $attendee) { foreach($appointment->attendees as $attendee) {
$recip = array(); $recip = array();
$recip[PR_EMAIL_ADDRESS] = u2w($attendee->email); $recip[PR_EMAIL_ADDRESS] = u2w($attendee->email);
......
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