Removing check of the task steps.
This commit is contained in:
@@ -1828,7 +1828,6 @@ class wsBase
|
|||||||
$Fields = $variables;
|
$Fields = $variables;
|
||||||
} else {
|
} else {
|
||||||
if ($c == 0) {
|
if ($c == 0) {
|
||||||
//Si no tenenmos ninguna variables en el array variables.
|
|
||||||
$result = new wsResponse( 10, G::loadTranslation( 'ID_ARRAY_VARIABLES_EMPTY' ) );
|
$result = new wsResponse( 10, G::loadTranslation( 'ID_ARRAY_VARIABLES_EMPTY' ) );
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
@@ -1860,19 +1859,12 @@ class wsBase
|
|||||||
|
|
||||||
$numTasks = 0;
|
$numTasks = 0;
|
||||||
if ($taskId != '') {
|
if ($taskId != '') {
|
||||||
$task = new Tasks();
|
$aTasks = $processes->getStartingTaskForUser( $processId, null );
|
||||||
$steps = $task->getStepsOfTask ($taskId);
|
foreach ($aTasks as $task) {
|
||||||
if (count($steps) > 0) {
|
if ($task['TAS_UID'] == $taskId) {
|
||||||
$aTasks = $processes->getStartingTaskForUser( $processId, null );
|
$arrayTask[0]['TAS_UID'] = $taskId;
|
||||||
foreach ($aTasks as $task) {
|
$numTasks = 1;
|
||||||
if ($task['TAS_UID'] == $taskId) {
|
|
||||||
$arrayTask[0]['TAS_UID'] = $taskId;
|
|
||||||
$numTasks = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$result = new wsResponse( 11, G::loadTranslation( 'ID_INVALID_PROCESS' ) . " " . $processId . "!!" );
|
|
||||||
return $result;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$arrayTask = $processes->getStartingTaskForUser( $processId, null );
|
$arrayTask = $processes->getStartingTaskForUser( $processId, null );
|
||||||
|
|||||||
Reference in New Issue
Block a user