mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
Fix alarm-offset not being sent to client
This commit is contained in:
parent
7c14d09409
commit
2f7e082d66
@ -1157,9 +1157,16 @@ class calendar_boupdate extends calendar_bo
|
|||||||
'id' => $event['id'],
|
'id' => $event['id'],
|
||||||
'app' => 'calendar',
|
'app' => 'calendar',
|
||||||
'videoconference' => $details['videoconference'],
|
'videoconference' => $details['videoconference'],
|
||||||
) + ($alarm ? ['alarm-offset' => (int)$alarm['offset']] : []));
|
));
|
||||||
|
}
|
||||||
|
if ($m_type === MSG_ALARM)
|
||||||
|
{
|
||||||
|
$notification->set_popupdata('calendar',
|
||||||
|
array('egw_pr_notify' => 1,
|
||||||
|
'type' => $m_type,
|
||||||
|
'videoconference' => $details['videoconference'])
|
||||||
|
+ ($alarm ? ['alarm-offset' => (int)$alarm['offset']] : []));
|
||||||
}
|
}
|
||||||
if ($m_type === MSG_ALARM) $notification->set_popupdata('calendar', array('egw_pr_notify' => 1, 'type' => $m_type, 'videoconference' => $details['videoconference']));
|
|
||||||
$notification->set_popupmessage($subject."\n\n".$notify_body."\n\n".$details['description']."\n\n".$details_body."\n\n");
|
$notification->set_popupmessage($subject."\n\n".$notify_body."\n\n".$details['description']."\n\n".$details_body."\n\n");
|
||||||
$notification->set_popuplinks(array($details['link_arr']+array('app'=>'calendar')));
|
$notification->set_popuplinks(array($details['link_arr']+array('app'=>'calendar')));
|
||||||
|
|
||||||
|
@ -356,7 +356,7 @@
|
|||||||
switch (notifymessages[id]['extra_data']['egw_pr_notify'])
|
switch (notifymessages[id]['extra_data']['egw_pr_notify'])
|
||||||
{
|
{
|
||||||
case EGW_PR_NOTIFY_HEIGH:
|
case EGW_PR_NOTIFY_HEIGH:
|
||||||
if (notifymessages[id]['extra_data']['videoconference'])
|
if (notifymessages[id]['extra_data']['videoconference'] && notifymessages[id]['extra_data']['alarm-offset'] == 300)
|
||||||
{
|
{
|
||||||
app.status.notificationPopup(notifymessages[id]['extra_data']['videoconference']);
|
app.status.notificationPopup(notifymessages[id]['extra_data']['videoconference']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user