PMCORE-2682
This commit is contained in:
@@ -330,6 +330,8 @@ class Home extends Api
|
|||||||
case 'IN_PROGRESS':
|
case 'IN_PROGRESS':
|
||||||
case 'COMPLETED':
|
case 'COMPLETED':
|
||||||
$list = new Participated();
|
$list = new Participated();
|
||||||
|
// todo: some queries related to the PROCESS_USER are using the USR_UID
|
||||||
|
$list->setUserUid($usrUid);
|
||||||
$list->setParticipatedStatus($filter);
|
$list->setParticipatedStatus($filter);
|
||||||
$list->setProperties($properties);
|
$list->setProperties($properties);
|
||||||
$result['data'] = $list->getData();
|
$result['data'] = $list->getData();
|
||||||
@@ -338,6 +340,8 @@ class Home extends Api
|
|||||||
case 'SUPERVISING':
|
case 'SUPERVISING':
|
||||||
// Scope that search for the SUPERVISING cases by specific user
|
// Scope that search for the SUPERVISING cases by specific user
|
||||||
$list = new Supervising();
|
$list = new Supervising();
|
||||||
|
// todo: some queries related to the PROCESS_USER are using the USR_UID
|
||||||
|
$list->setUserUid($usrUid);
|
||||||
$list->setProperties($properties);
|
$list->setProperties($properties);
|
||||||
$result['data'] = $list->getData();
|
$result['data'] = $list->getData();
|
||||||
$result['total'] = $list->getPagingCounters();
|
$result['total'] = $list->getPagingCounters();
|
||||||
@@ -388,12 +392,16 @@ class Home extends Api
|
|||||||
$participated->setParticipatedStatus($participatedStatus);
|
$participated->setParticipatedStatus($participatedStatus);
|
||||||
$usrId = !empty($usrUid) ? User::getId($usrUid) : 0;
|
$usrId = !empty($usrUid) ? User::getId($usrUid) : 0;
|
||||||
$participated->setUserId($usrId);
|
$participated->setUserId($usrId);
|
||||||
|
// todo: some queries related to the PROCESS_USER are using the USR_UID
|
||||||
|
$participated->setUserUid($usrUid);
|
||||||
$counter->counter = $participated->getCounter();
|
$counter->counter = $participated->getCounter();
|
||||||
break;
|
break;
|
||||||
case 'SUPERVISING':
|
case 'SUPERVISING':
|
||||||
$supervising = new Supervising();
|
$supervising = new Supervising();
|
||||||
$usrId = !empty($usrUid) ? User::getId($usrUid) : 0;
|
$usrId = !empty($usrUid) ? User::getId($usrUid) : 0;
|
||||||
$supervising->setUserUid($usrId);
|
$supervising->setUserId($usrId);
|
||||||
|
// todo: some queries related to the PROCESS_USER are using the USR_UID
|
||||||
|
$supervising->setUserUid($usrUid);
|
||||||
$counter->counter = $supervising->getCounter();
|
$counter->counter = $supervising->getCounter();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user