BUG-13829 Advanced Search List, Current User Column

This commit is contained in:
norahmollo
2014-01-23 09:41:32 -04:00
parent 979dd8b2ad
commit a90950c01c
2 changed files with 5 additions and 3 deletions

View File

@@ -181,7 +181,7 @@ class AppProxy extends HttpProxyController
throw new Exception( G::LoadTranslation( 'ID_NO_PERMISSION_NO_PARTICIPATED' ) ); throw new Exception( G::LoadTranslation( 'ID_NO_PERMISSION_NO_PARTICIPATED' ) );
} }
if ($httpData->action == 'sent') { // Get the last valid delegation for participated list if (($httpData->action == 'sent') || ($httpData->action == 'search')){ // Get the last valid delegation for participated list
$criteria = new Criteria(); $criteria = new Criteria();
$criteria->addSelectColumn(AppDelegationPeer::DEL_INDEX); $criteria->addSelectColumn(AppDelegationPeer::DEL_INDEX);
$criteria->add(AppDelegationPeer::APP_UID, $httpData->appUid); $criteria->add(AppDelegationPeer::APP_UID, $httpData->appUid);

View File

@@ -98,11 +98,13 @@ 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->addDescendingOrderByColumn( AppDelegationPeer::DEL_INDEX ); $c->addAscendingOrderByColumn( AppDelegationPeer::DEL_INDEX );
$oDataset = AppDelegationPeer::doSelectRs( $c ); $oDataset = AppDelegationPeer::doSelectRs( $c );
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC ); $oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
$oDataset->next(); $oDataset->next();