BUG-13829 Advanced Search List, Current User Column
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user