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

@@ -204,8 +204,12 @@ $uidf=$_GET['UID'];
$oHeadPublisher =& headPublisher::getSingleton();
$oHeadPublisher->addScriptCode("
if (typeof parent != 'undefined') {
try {
parent.setNode('$uidf');
}
catch(e) {
}
}
");
$oStep = new Step();
@@ -989,8 +993,12 @@ $uidf=$_GET['UID'];
$oHeadPublisher =& headPublisher::getSingleton();
$oHeadPublisher->addScriptCode("
if (typeof parent != 'undefined') {
try {
parent.showCaseNavigatorPanel('$sStatus');
}
catch(e) {
}
}
");
G::RenderPage('publish', 'blank');