PM-2938: Show only 1 cases menu [Batch Routing]

This commit is contained in:
Paula V. Quispe
2015-06-11 18:42:58 -04:00
parent bc6f4fae31
commit 68d92c465b

View File

@@ -32,7 +32,16 @@ G::LoadTranslation('ID_NEW_CASE'), '');
/*----------------------------------********---------------------------------*/
$licensedFeatures = & PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
$G_TMP_MENU->AddIdRawOption('CONSOLIDATED_CASES', 'casesConsolidatedListExtJs?action=consolidated', 'Batch Routing', '');
//If plugin is active doesnot show the menu in Cases
$pluginRegistry = & PMPluginRegistry::getSingleton ();
$pluginDetail = $pluginRegistry->getPluginDetails("pmConsolidatedCL.php");
$pluginEnabled = 0;
if ($pluginDetail && $pluginDetail->enabled) {
$pluginEnabled = 1;
}
if($pluginEnabled == 0){
$G_TMP_MENU->AddIdRawOption('CONSOLIDATED_CASES', 'casesConsolidatedListExtJs?action=consolidated', 'Batch Routing', '');
}
}
/*----------------------------------********---------------------------------*/