Merged in bugfix/PMCORE-3104 (pull request #8056)
PMCORE-3104 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
@@ -6,6 +6,7 @@ use Exception;
|
||||
use G;
|
||||
use Luracast\Restler\RestException;
|
||||
use Menu;
|
||||
use ProcessMaker\BusinessModel\Cases\CasesList;
|
||||
use ProcessMaker\BusinessModel\Cases\Draft;
|
||||
use ProcessMaker\BusinessModel\Cases\Filter;
|
||||
use ProcessMaker\BusinessModel\Cases\Inbox;
|
||||
@@ -786,7 +787,7 @@ class Home extends Api
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the tasks counters for todo, draft, paused and unassigned
|
||||
* Get the tasks counters for all task list: todo, draft, paused and unassigned
|
||||
*
|
||||
* @url GET /tasks/counter
|
||||
*
|
||||
@@ -824,6 +825,26 @@ class Home extends Api
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the tasks highlight for all task list
|
||||
*
|
||||
* @url GET /tasks/highlight
|
||||
*
|
||||
* @return array
|
||||
*
|
||||
* @access protected
|
||||
* @class AccessControl {@permission PM_CASES}
|
||||
*/
|
||||
public function getHighlight()
|
||||
{
|
||||
$usrUid = $this->getUserId();
|
||||
$casesList = new CasesList();
|
||||
$result = [];
|
||||
$result = $casesList->atLeastOne($usrUid);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all tasks, paged optionally, can be sent a text to filter results by "TAS_TITLE"
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user