Adding some requieres to instanciate classes.
This commit is contained in:
@@ -180,6 +180,7 @@ class labelsGmail
|
||||
*/
|
||||
public function deletePMGmailLabels($mail)
|
||||
{
|
||||
require_once (PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.pmGoogleApi.php");
|
||||
$pmGoogle = new PMGoogleApi();
|
||||
|
||||
$pmGoogle->setUser($mail);
|
||||
|
||||
@@ -69,6 +69,7 @@ if ($aDelegation['USR_UID'] == "") {
|
||||
$oCase->setCatchUser( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['USER_LOGGED'] );
|
||||
//changing email labels if the claim comes from gmail
|
||||
if($_SESSION['gmail'] == 1){
|
||||
require_once (PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.labelsGmail.php");
|
||||
$labGmail = new labelsGmail();
|
||||
$oResponse = $labGmail->setLabels($sAppUid, $iDelIndex, -1, true);
|
||||
|
||||
|
||||
@@ -85,7 +85,6 @@ switch ($RBAC->userCanAccess( 'PM_CASES' )) {
|
||||
|
||||
if($_GET['gmail'] && $_GET['gmail'] == 1){
|
||||
$_SESSION['gmail'] = 1;
|
||||
print_r('setea sesion gmail');
|
||||
}
|
||||
|
||||
if ((int) $_SESSION['INDEX'] < 1) {
|
||||
|
||||
@@ -2443,7 +2443,7 @@ class Cases
|
||||
$aConditions[] = array('PCS.PRO_CATEGORY', 'PCSCAT.CATEGORY_UID');
|
||||
$c->addJoinMC( $aConditions, \Criteria::LEFT_JOIN );
|
||||
}
|
||||
|
||||
$c->setDistinct();
|
||||
$rs = \TaskPeer::doSelectRS($c);
|
||||
|
||||
$rs->setFetchmode(\ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
Reference in New Issue
Block a user