Adding a simple validation in templates/cases/cases.js to hide the unpuse buttons if we are in the gmail interface.

And deleting the call to methods that make the pause cases send message.
This commit is contained in:
jennydmz
2015-12-22 08:42:41 -04:00
parent 65910c3a08
commit 6ad029273f
2 changed files with 8 additions and 24 deletions

View File

@@ -4123,18 +4123,6 @@ class Cases
$oListPaused = new ListPaused();
$oListPaused->create($data);
/*----------------------------------********---------------------------------*/
/*----------------------------------********---------------------------------*/
$licensedFeatures = &PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
G::LoadClass( "AppDocumentDrive" );
$drive = new AppDocumentDrive();
if ($drive->getStatusDrive()) {
$pmGmail = new \ProcessMaker\BusinessModel\Pmgmail();
$pmGmail->modifyMailToPauseCase($aData['APP_UID'], $aData['APP_DEL_INDEX']);
}
}
/*----------------------------------********---------------------------------*/
}
/*
@@ -4231,18 +4219,6 @@ class Cases
$oListPaused = new ListPaused();
$oListPaused->remove($sApplicationUID, $iDelegation, $aData);
/*----------------------------------********---------------------------------*/
/*----------------------------------********---------------------------------*/
$licensedFeatures = &PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
G::LoadClass("AppDocumentDrive");
$drive = new AppDocumentDrive();
if ($drive->getStatusDrive()) {
$pmGmail = new \ProcessMaker\BusinessModel\Pmgmail();
$pmGmail->modifyMailToUnpauseCase($aData['APP_UID'], $aData['DEL_INDEX']);
}
}
/*----------------------------------********---------------------------------*/
}
/*

View File

@@ -157,6 +157,14 @@ Ext.onReady(function(){
tb.add(menu);
}
}
var olink = document.location.href;
if(olink.search("gmail") != -1){
Ext.getCmp('stepsMenu').hide();
Ext.getCmp('informationMenu').hide();
Ext.getCmp('actionMenu').hide();
Ext.getCmp('caseNotes').hide();
}
if (Ext.getCmp('stepsMenu').disabled === true) {
Ext.getCmp('stepsMenu').hide();