Merged in bugfix/PMCORE-3104 (pull request #8056)

PMCORE-3104

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2021-08-24 14:39:33 +00:00
committed by Julio Cesar Laura Avendaño
17 changed files with 262 additions and 25 deletions

View File

@@ -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"
*