BUG 0000 Fix validation when 'parent' object not exists

This commit is contained in:
Julio Cesar Laura
2011-11-29 11:44:55 -04:00
parent 7cd80d9432
commit 2b3df3a547

View File

@@ -200,14 +200,18 @@ $uidf=$_GET['UID'];
}
$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');
try {
parent.setNode('$uidf');
}
catch(e) {
}
}
");
$oStep = new Step();
$oStep = $oStep->loadByProcessTaskPosition($_SESSION['PROCESS'], $_SESSION['TASK'], $_GET['POSITION']);
@@ -989,7 +993,11 @@ $uidf=$_GET['UID'];
$oHeadPublisher =& headPublisher::getSingleton();
$oHeadPublisher->addScriptCode("
if (typeof parent != 'undefined') {
parent.showCaseNavigatorPanel('$sStatus');
try {
parent.showCaseNavigatorPanel('$sStatus');
}
catch(e) {
}
}
");