GI-240
Changing the method that verifies if the Gmail feature is enabled (Now is separeted from Drive feature). GI-240 Changing the method that verifies if the Gmail feature is enabled (Now is separeted from Drive feature).
This commit is contained in:
@@ -5,9 +5,9 @@ if (typeof window.parent != 'undefined') {
|
||||
$statusPMGmail = false;
|
||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
||||
G::LoadClass( "AppDocumentDrive" );
|
||||
$drive = new AppDocumentDrive();
|
||||
$statusPMGmail = $drive->getStatusDrive();
|
||||
G::LoadClass( "PMGoogleApi" );
|
||||
$pmGoogle = new PMGoogleApi();
|
||||
$statusPMGmail = $pmGoogle->getServiceGmailStatus();
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (isset( $_GET['ux'] )) {
|
||||
|
||||
@@ -262,13 +262,13 @@ function startCase ()
|
||||
$_SESSION['CASES_REFRESH'] = true;
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
//sending the email for gmail integration if the option es available
|
||||
//sending the email for gmail integration if the option is available
|
||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
||||
G::LoadClass( "AppDocumentDrive" );
|
||||
$drive = new AppDocumentDrive();
|
||||
G::LoadClass( "PMGoogleApi" );
|
||||
$pmGoogle = new PMGoogleApi();
|
||||
|
||||
if($drive->getStatusDrive()){
|
||||
if($pmGoogle->getServiceGmailStatus()){
|
||||
require_once 'src/ProcessMaker/BusinessModel/Pmgmail.php';
|
||||
$Pmgmail = new \ProcessMaker\BusinessModel\Pmgmail();
|
||||
$response = $Pmgmail->sendEmail($aData['APPLICATION'], "", $aData['INDEX']);
|
||||
|
||||
@@ -34,9 +34,9 @@ require_once (PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.la
|
||||
$oLabels = new labelsGmail();
|
||||
$oLabels->addRelabelingToQueue($caseId, $actualIndex, $actualLastIndex, false);
|
||||
|
||||
G::LoadClass( "AppDocumentDrive" );
|
||||
$drive = new AppDocumentDrive();
|
||||
if(array_key_exists('gmail', $_SESSION) && $_SESSION['gmail'] == 1 && $drive->getStatusDrive() ){
|
||||
G::LoadClass( "PMGoogleApi" );
|
||||
$pmGoogle = new PMGoogleApi();
|
||||
if(array_key_exists('gmail', $_SESSION) && $_SESSION['gmail'] == 1 && $pmGoogle->getServiceGmailStatus() ){
|
||||
$_SESSION['gmail'] = 0;
|
||||
unset($_SESSION['gmail']); //cleaning session
|
||||
$mUrl = '/sys'. $_SESSION['WORKSPACE'] .'/en/'.$_SESSION['currentSkin'].'/cases/cases_Open?APP_UID='.$caseId.'&DEL_INDEX='.$actualIndex.'&action=sent';
|
||||
|
||||
@@ -64,9 +64,9 @@ $urlToRedirectAfterPause = 'casesListExtJs';
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
|
||||
G::LoadClass( "AppDocumentDrive" );
|
||||
$drive = new AppDocumentDrive();
|
||||
if (array_key_exists('gmail', $_SESSION) && $_SESSION['gmail'] == 1 && $drive->getStatusDrive()) {
|
||||
G::LoadClass( "PMGoogleApi" );
|
||||
$pmGoogle = new PMGoogleApi();
|
||||
if (array_key_exists('gmail', $_SESSION) && $_SESSION['gmail'] == 1 && $pmGoogle->getServiceGmailStatus()) {
|
||||
$_SESSION['gmail'] = 0;
|
||||
$urlToRedirectAfterPause = '/sys'. $_SESSION['WORKSPACE'] .'/en/neoclassic/cases/cases_Open?APP_UID='.$_SESSION['APPLICATION'].'&DEL_INDEX='.$_SESSION['INDEX'].'&action=sent';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user