forked from extern/egroupware
missing templates and a fix for new reply handling
This commit is contained in:
parent
380b57a85d
commit
e47fca7d10
@ -1713,11 +1713,11 @@ function replace_eTemplate_onsubmit()
|
||||
isset($existing_event['participants'][$event['ical_sender_uid']]) &&
|
||||
$this->bo->check_status_perms($event['ical_sender_uid'], $existing_event))
|
||||
{
|
||||
$status = $event['participants'][$event['ical_sender_uid']];
|
||||
calendar_so::split_status($status, $quantity, $role);
|
||||
$event['ical_sender_status'] = $event['participants'][$event['ical_sender_uid']];
|
||||
calendar_so::split_status($event['ical_sender_status'], $quantity, $role);
|
||||
$existing_status = $existing_event['participants'][$event['ical_sender_uid']];
|
||||
calendar_so::split_status($existing_status, $quantity, $role);
|
||||
if ($existing_status != $status)
|
||||
if ($existing_status != $event['ical_sender_status'])
|
||||
{
|
||||
$readonlys['button[apply]'] = false;
|
||||
}
|
||||
@ -1822,9 +1822,7 @@ function replace_eTemplate_onsubmit()
|
||||
|
||||
case 'apply':
|
||||
// set status and send notification / meeting response
|
||||
$status = $event['participants'][$event['ical_sender_status']];
|
||||
calendar_so::split_status($status, $quantity, $role);
|
||||
if ($this->bo->set_status($event['id'], $event['ical_sender_uid'], $status))
|
||||
if ($this->bo->set_status($event['id'], $event['ical_sender_uid'], $event['ical_sender_status']))
|
||||
{
|
||||
$msg = lang('Status changed');
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -19,6 +19,13 @@
|
||||
<button label="Reject" id="button[reject]" class="leftPad5"/>
|
||||
<buttononly statustext="Edit event in calendar" label="Edit" id="button[edit]" onclick="window.open(egw::link('/index.php','menuaction=calendar.calendar_uiforms.edit&cal_id=$cont[id]'),'_blank','dependent=yes,width=750,height=410,scrollbars=yes,status=yes'); return false;" class="leftPad5"/>
|
||||
</row>
|
||||
<row disabled="!@ics_method=reply">
|
||||
<description value="This mail contains a reply to a meeting request" class="meetingRequestMessage"/>
|
||||
<button label="Apply" id="button[apply]" class="leftPad5"/>
|
||||
<description/>
|
||||
<description/>
|
||||
<description/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<description/>
|
||||
|
@ -1019,10 +1019,12 @@ class groupdav_principals extends groupdav_handler
|
||||
{
|
||||
// found an addressbook entry
|
||||
$uid = $data['account_id'] ? (int)$data['account_id'] : 'c'.$data['id'];
|
||||
$type = 'users';
|
||||
}
|
||||
else // just store email-address
|
||||
{
|
||||
$uid = 'e'.$rest;
|
||||
$type = 'users';
|
||||
}
|
||||
break;
|
||||
|
||||
@ -1048,7 +1050,7 @@ class groupdav_principals extends groupdav_handler
|
||||
if (is_null($calendar_bo)) $calendar_bo = new calendar_bo();
|
||||
foreach($calendar_bo->resources as $letter => $info)
|
||||
{
|
||||
if ($info['app'] == $type)
|
||||
if ($info['app'] == $type || $info['app'] == 'resources' && $type == 'location')
|
||||
{
|
||||
$uid = $letter.$id;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user