Adding some requieres to instanciate classes.

This commit is contained in:
jennydmz
2015-11-20 11:25:34 -04:00
parent b8a9f6d9ae
commit 7d90cd3657
4 changed files with 3 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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) {

View File

@@ -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);