mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
fix not working opening/converting calls to infolog
This commit is contained in:
parent
24f51d4ad0
commit
b7f7f3b0bd
@ -1045,6 +1045,8 @@ class calendar_uilist extends calendar_ui
|
||||
'group' => $group,
|
||||
'allowOnMultiple' => false,
|
||||
'url' => 'menuaction=infolog.infolog_ui.edit&type=task&action=calendar&action_id=$id',
|
||||
'onExecute' => 'javaScript:app.calendar.action_open',
|
||||
'open' => '{"app": "infolog", "type": "add", "extra": "type=task&action=$app&action_id=$app_id"}',
|
||||
'popup' => Link::get_registry('infolog', 'add_popup'),
|
||||
// Limit infolog convert to only the apps that support it (some entries may be other apps via integration)
|
||||
'enabled' => 'javaScript:app.calendar.action_convert_enabled_check',
|
||||
|
@ -961,11 +961,6 @@ class calendar_uiviews extends calendar_ui
|
||||
$actions['filemanager']['url'] = '/index.php?'. $actions['filemanager']['url'];
|
||||
$actions['filemanager']['onExecute'] = 'javaScript:app.calendar.action_open';
|
||||
}
|
||||
if ($actions['infolog_app'])
|
||||
{
|
||||
$actions['infolog_app']['open'] = '{"app": "infolog", "type": "add", "extra": "type=task&action=$app&action_id=$id"}';
|
||||
$actions['infolog_app']['onExecute'] = 'javaScript:app.calendar.action_open';
|
||||
}
|
||||
$actions['ical']['onExecute'] = 'javaScript:app.calendar.ical';
|
||||
|
||||
$actions['delete']['onExecute'] = 'javaScript:app.calendar.delete';
|
||||
@ -1022,4 +1017,4 @@ class calendar_uiviews extends calendar_ui
|
||||
}
|
||||
return $dayEvents;
|
||||
}
|
||||
}
|
||||
}
|
@ -1820,6 +1820,11 @@ export class CalendarApp extends EgwApp
|
||||
{
|
||||
app = data.data.app;
|
||||
app_id = data.data.app_id;
|
||||
if (app === 'calendar' && app_id.indexOf(':'))
|
||||
{
|
||||
let parts = app_id.split(':');
|
||||
app_id = parts[0];
|
||||
}
|
||||
id = data.data.id;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user