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:
Carlos Pacha
2011-05-12 11:22:45 -04:00
parent bc0bf66af7
commit 67775896be
2 changed files with 4 additions and 4 deletions

View File

@@ -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');
?>
?>

View File

@@ -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']);
}
}