List the right RSVP buttons according to the context; follow-up fix for #4447
This commit is contained in:
parent
91a484a713
commit
ad67a1c7b9
3 changed files with 7 additions and 3 deletions
|
@ -886,7 +886,11 @@ class calendar_ui
|
|||
|
||||
function event_rsvp_buttons($attrib = array())
|
||||
{
|
||||
return $this->cal->itip->itip_rsvp_buttons($attrib);
|
||||
$actions = array('accepted','tentative','declined');
|
||||
if ($attrib['delegate'] !== 'false')
|
||||
$actions[] = 'delegated';
|
||||
|
||||
return $this->cal->itip->itip_rsvp_buttons($attrib, $actions);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<div class="centerbox">
|
||||
<roundcube:object name="plugin.event_inviteform" />
|
||||
<roundcube:object name="plugin.event_invitebox" class="calendar-invitebox" />
|
||||
<roundcube:object name="plugin.event_rsvp_buttons" type="submit" iname="rsvp" id="event-rsvp" />
|
||||
<roundcube:object name="plugin.event_rsvp_buttons" type="submit" iname="rsvp" id="event-rsvp" delegate="false" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<div class="centerbox uibox">
|
||||
<roundcube:object name="plugin.event_inviteform" />
|
||||
<roundcube:object name="plugin.event_invitebox" class="calendar-invitebox" />
|
||||
<roundcube:object name="plugin.event_rsvp_buttons" type="submit" iname="rsvp" id="event-rsvp" />
|
||||
<roundcube:object name="plugin.event_rsvp_buttons" type="submit" iname="rsvp" id="event-rsvp" delegate="false" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue