BUG 5011 Initial tasks in a process doen't appear in the dropdown box in Event
This issue has been solved, the dropdown box has all the task now
This commit is contained in:
@@ -50,12 +50,12 @@ if (!isset($_SESSION['PROCESS'])){
|
||||
}
|
||||
|
||||
$oTasks = new Tasks();
|
||||
$aAux1 = $oTasks->getAllTasks($aFields['PRO_UID']);
|
||||
$aAux1 = $oTasks->getAllTaskstoEvents($aFields['PRO_UID']);
|
||||
$aTasks = array();
|
||||
$aTasks[] = array('TAS_UID' => 'char',
|
||||
'TAS_TITLE' => 'char');
|
||||
foreach ($aAux1 as $aAux2) {
|
||||
if ($aAux2['TAS_TYPE'] != 'SUBPROCESS' && $aAux2['TAS_START'] != 'TRUE') {
|
||||
if ($aAux2['TAS_TYPE'] != 'SUBPROCESS') {
|
||||
$aTasks[] = array('TAS_UID' => $aAux2['TAS_UID'], 'TAS_TITLE' => $aAux2['TAS_TITLE']);
|
||||
}
|
||||
}
|
||||
@@ -82,4 +82,4 @@ $_SESSION['_DBArray'] = $_DBArray;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'events/eventsEdit', '', $aFields, '../events/eventsSave');
|
||||
G::RenderPage('publish', 'raw');
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -40,7 +40,7 @@ $aTasks[] = array('TAS_UID' => 'char', 'TAS_TITLE' => 'char');
|
||||
|
||||
//g::pr($aAux1);die;
|
||||
foreach ($aAux1 as $aAux2) {
|
||||
if ($aAux2['TAS_TYPE'] != 'SUBPROCESS' && $aAux2['TAS_START'] != 'TRUE') {
|
||||
if ($aAux2['TAS_TYPE'] != 'SUBPROCESS') {
|
||||
$aTasks[] = array('TAS_UID' => $aAux2['TAS_UID'], 'TAS_TITLE' => $aAux2['TAS_TITLE']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user