diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 7d91663211..1f046bbf1f 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -1058,20 +1058,7 @@ var et2_calendar_event = /** @class */ (function (_super) { break; case 'series': case 'single': - // ToDo: find a nicer way to open CRM view for calls - if (event_data.app === 'stylite') { - var contact_id = void 0; - for (var uid in event_data.participants) { - if (typeof uid === 'string' && uid[0] === 'c') { - contact_id = parseInt(uid.substr(1)); - } - } - if (contact_id) - app.calendar.openCRMview({}, contact_id); - } - else { - egw.open(edit_id, event_data.app || 'calendar', 'edit', extra_params); - } + egw.open(edit_id, event_data.app || 'calendar', 'edit', extra_params); break; case 'cancel': default: diff --git a/calendar/js/et2_widget_event.ts b/calendar/js/et2_widget_event.ts index 1508134e56..0ae5a62115 100644 --- a/calendar/js/et2_widget_event.ts +++ b/calendar/js/et2_widget_event.ts @@ -1335,23 +1335,7 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached break; case 'series': case 'single': - // ToDo: find a nicer way to open CRM view for calls - if (event_data.app === 'stylite') - { - let contact_id; - for(let uid in event_data.participants) - { - if (typeof uid === 'string' && uid[0] === 'c') - { - contact_id = parseInt(uid.substr(1)); - } - } - if (contact_id) app.calendar.openCRMview({}, contact_id); - } - else - { - egw.open(edit_id, event_data.app||'calendar', 'edit', extra_params); - } + egw.open(edit_id, event_data.app||'calendar', 'edit', extra_params); break; case 'cancel': default: