BUG 7943: Steps browsing issue

This issue was fixed, now displays the selected dynaform
This commit is contained in:
Carlos Pacha
2011-11-03 17:36:51 -04:00
parent 2b0b9de0f6
commit 0034a2cc05
4 changed files with 39 additions and 8 deletions

View File

@@ -186,6 +186,8 @@
$array['TITLE'] = G::LoadTranslation('ID_TITLE');
$G_PUBLISH->AddContent('smarty', 'cases/cases_title', '', '', $array);
$uidf=$_GET['UID'];
switch ($_GET['TYPE'])
{
case 'DYNAFORM':
@@ -198,7 +200,14 @@
}
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP'] = $aNextStep['PAGE'];
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_STEP_LABEL'] = G::loadTranslation('ID_NEXT_STEP');
$oHeadPublisher =& headPublisher::getSingleton();
$oHeadPublisher->addScriptCode("
if (typeof parent != 'undefined') {
parent.setNode('$uidf');
}
");
$oStep = new Step();
$oStep = $oStep->loadByProcessTaskPosition($_SESSION['PROCESS'], $_SESSION['TASK'], $_GET['POSITION']);
@@ -689,6 +698,7 @@
'APP_UID' => $_SESSION['APPLICATION'],
'DEL_INDEX' => $_SESSION['INDEX'])
);
if ( empty($aFields['TASK']) ) {
throw ( new Exception ( G::LoadTranslation( 'ID_NO_DERIVATION_RULE') ) );
}
@@ -976,7 +986,6 @@
die;
}
/* Render page */
$oHeadPublisher =& headPublisher::getSingleton();
$oHeadPublisher->addScriptCode("
if (typeof parent != 'undefined') {