Skip to content
Snippets Groups Projects
Commit 4f386080 authored by Greeshma's avatar Greeshma
Browse files

list view inline delete fix for calendar module

parent 07145e4b
No related branches found
No related tags found
1 merge request!467list view inline delete fix for calendar module
......@@ -31,9 +31,9 @@ class Calendar_DeleteAjax_Action extends Vtiger_DeleteAjax_Action {
$activityModulesList = array('Calendar', 'Events');
$recordEntityName = getSalesEntityType($record);
if (!in_array($recordEntityName, $activityModulesList) || !in_array($sourceModule, $activityModulesList)) {
if ((!empty($recordEntityName) && !in_array($recordEntityName, $activityModulesList)) || (!empty($sourceModule) && !in_array($sourceModule, $activityModulesList))) {
throw new AppException(vtranslate('LBL_PERMISSION_DENIED'));
}
}
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment