Fix notice ASSIGNEE y PMUSER.
This commit is contained in:
@@ -984,6 +984,9 @@ class Task
|
|||||||
public function getTaskAssignee($sProcessUID, $sTaskUID, $sAssigneeUID)
|
public function getTaskAssignee($sProcessUID, $sTaskUID, $sAssigneeUID)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$filter = '';
|
||||||
|
$start = null;
|
||||||
|
$limit = null;
|
||||||
$oProcess = \ProcessPeer::retrieveByPK( $sProcessUID );
|
$oProcess = \ProcessPeer::retrieveByPK( $sProcessUID );
|
||||||
if (is_null($oProcess)) {
|
if (is_null($oProcess)) {
|
||||||
throw (new \Exception( 'This id for `prj_uid`: '. $sProcessUID .' do not correspond to a registered process'));
|
throw (new \Exception( 'This id for `prj_uid`: '. $sProcessUID .' do not correspond to a registered process'));
|
||||||
@@ -1530,6 +1533,9 @@ class Task
|
|||||||
public function getTaskAdhocAssignee($sProcessUID, $sTaskUID, $sAssigneeUID)
|
public function getTaskAdhocAssignee($sProcessUID, $sTaskUID, $sAssigneeUID)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$filter = '';
|
||||||
|
$start = null;
|
||||||
|
$limit = null;
|
||||||
$oProcess = \ProcessPeer::retrieveByPK( $sProcessUID );
|
$oProcess = \ProcessPeer::retrieveByPK( $sProcessUID );
|
||||||
if (is_null($oProcess)) {
|
if (is_null($oProcess)) {
|
||||||
throw (new \Exception( 'This id for `prj_uid`: '. $sProcessUID .' do not correspond to a registered process'));
|
throw (new \Exception( 'This id for `prj_uid`: '. $sProcessUID .' do not correspond to a registered process'));
|
||||||
|
|||||||
@@ -649,6 +649,7 @@ class User
|
|||||||
public function getUsers($filter, $start, $limit)
|
public function getUsers($filter, $start, $limit)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$aUserInfo = array();
|
||||||
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "Users.php");
|
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "Users.php");
|
||||||
$oCriteria = new \Criteria();
|
$oCriteria = new \Criteria();
|
||||||
if ($filter != '') {
|
if ($filter != '') {
|
||||||
@@ -696,6 +697,7 @@ class User
|
|||||||
public function getUser($userUid)
|
public function getUser($userUid)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$aUserInfo = array();
|
||||||
$oUser = \UsersPeer::retrieveByPK($userUid);
|
$oUser = \UsersPeer::retrieveByPK($userUid);
|
||||||
if (is_null($oUser)) {
|
if (is_null($oUser)) {
|
||||||
throw (new \Exception( 'This id for `usr_uid`: '. $userUid .' do not correspond to a registered user'));
|
throw (new \Exception( 'This id for `usr_uid`: '. $userUid .' do not correspond to a registered user'));
|
||||||
|
|||||||
Reference in New Issue
Block a user