BUG 14390 Improvement

This commit is contained in:
Julio Cesar Laura
2014-05-05 13:06:22 -04:00
parent 439d2ae99e
commit 2202f85b03
2 changed files with 5 additions and 3 deletions

View File

@@ -228,6 +228,7 @@ class AppDelegation extends BaseAppDelegation
$row = $rs->getRow(); $row = $rs->getRow();
while (is_array($row)) { while (is_array($row)) {
$case = array();
$case['TAS_UID'] = $row['TAS_UID']; $case['TAS_UID'] = $row['TAS_UID'];
$case['USR_UID'] = $row['USR_UID']; $case['USR_UID'] = $row['USR_UID'];
$aCases[] = $case; $aCases[] = $case;

View File

@@ -98,10 +98,10 @@ try {
/** /**
* these routine is to verify if the case was acceded from advaced search list * these routine is to verify if the case was acceded from advaced search list
*/ */
if ($_action == 'search') { if ($_action == 'search') {
//verify if the case is with teh current user //verify if the case is with teh current user
$c = new Criteria( 'workflow' ); $c = new Criteria( 'workflow' );
$c->add( AppDelegationPeer::APP_UID, $sAppUid ); $c->add( AppDelegationPeer::APP_UID, $sAppUid );
$c->addAscendingOrderByColumn( AppDelegationPeer::DEL_INDEX ); $c->addAscendingOrderByColumn( AppDelegationPeer::DEL_INDEX );
@@ -109,7 +109,7 @@ try {
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC ); $oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
$oDataset->next(); $oDataset->next();
$aData = $oDataset->getRow(); $aData = $oDataset->getRow();
if ($aData['USR_UID'] != $_SESSION['USER_LOGGED'] && $aData['USR_UID'] != "") { if ($aData['USR_UID'] != $_SESSION['USER_LOGGED'] && $aData['USR_UID'] != "") {
//distinct "" for selfservice //distinct "" for selfservice
//so we show just the resume //so we show just the resume
@@ -194,6 +194,7 @@ try {
$_SESSION['ACTION'] = 'jump'; $_SESSION['ACTION'] = 'jump';
} else { } else {
$Fields = $oCase->loadCase( $_SESSION['APPLICATION'], $_SESSION['INDEX']); $Fields = $oCase->loadCase( $_SESSION['APPLICATION'], $_SESSION['INDEX']);
unset($_SESSION['ACTION']);
} }
$_SESSION['CURRENT_TASK'] = $Fields['TAS_UID']; $_SESSION['CURRENT_TASK'] = $Fields['TAS_UID'];