diff --git a/layouts/v7/modules/Calendar/resources/Calendar.js b/layouts/v7/modules/Calendar/resources/Calendar.js index e1abaad42947e18f4a2196c7d6ec3d0908c52469..98c1147371910dff8c156a86f914639503063558 100644 --- a/layouts/v7/modules/Calendar/resources/Calendar.js +++ b/layouts/v7/modules/Calendar/resources/Calendar.js @@ -559,7 +559,11 @@ Vtiger.Class("Calendar_Calendar_Js", { feedIndicatorTemplate.removeClass('.feed-indicator-template'); var newFeedIndicator = feedIndicatorTemplate.clone(true, true); //replacing module name prefix with translated module name and concatinating with field name - feedIndicatorTitle = translatedModuleName + feedIndicatorTitle.substr(feedIndicatorTitle.indexOf('-')); + var feedIndicatorModuleEndIndex = feedIndicatorTitle.indexOf('('); // Events (ActivityType) - title... + if (feedIndicatorModuleEndIndex == -1) { // ModuleName - title... + feedIndicatorModuleEndIndex = feedInicatorTitle.indexOf('-'); + } + feedIndicatorTitle = translatedModuleName + feedIndicatorTitle.substr(feedIndicatorModuleEndIndex); newFeedIndicator.find('span:first').text(feedIndicatorTitle); var newFeedCheckbox = newFeedIndicator.find('.toggleCalendarFeed'); newFeedCheckbox.attr('data-calendar-sourcekey', calendarSourceKey).