Merge pull request #1803 from luisfernandosl/BUG-11150

BUG 11150 "Add a PM variable to the cases step" SOLVED
This commit is contained in:
julceslauhub
2013-06-12 10:20:00 -07:00

View File

@@ -1,9 +1,9 @@
<?php
if (!isset($_SESSION['USER_LOGGED'])) {
G::SendTemporalMessage( 'ID_LOGIN_AGAIN', 'warning', 'labels' );
die( '<script type="text/javascript">
parent.location = "../cases/casesStartPage?action=startCase";
</script>');
if (!isset($_SESSION['USER_LOGGED'])) {
G::SendTemporalMessage( 'ID_LOGIN_AGAIN', 'warning', 'labels' );
die( '<script type="text/javascript">
parent.location = "../cases/casesStartPage?action=startCase";
</script>');
}
/**
* cases_Step.php
@@ -219,12 +219,15 @@ try {
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['DYNUIDPRINT'] = $_GET['UID'];
$oHeadPublisher = & headPublisher::getSingleton();
$oHeadPublisher->addScriptCode( "
if (typeof parent != 'undefined') {
if (parent.setNode) {
parent.setNode('" . $_GET['UID'] . "');
}
}" );
if(!isset($_SESSION["PM_RUN_OUTSIDE_MAIN_APP"])) {
$oHeadPublisher->addScriptCode( "
if (typeof parent != 'undefined') {
if (parent.setNode) {
parent.setNode('" . $_GET['UID'] . "');
}
}" );
}
$oStep = new Step();
$oStep = $oStep->loadByProcessTaskPosition( $_SESSION['PROCESS'], $_SESSION['TASK'], $_GET['POSITION'] );
@@ -996,16 +999,20 @@ try {
$oHeadPublisher = & headPublisher::getSingleton();
$oHeadPublisher->addScriptFile( "/jscore/cases/core/cases_Step.js" );
$oHeadPublisher->addScriptCode( "
if (typeof parent != 'undefined') {
if (parent.showCaseNavigatorPanel) {
parent.showCaseNavigatorPanel('$sStatus');
}
if (parent.setCurrent) {
parent.setCurrent('" . $_GET['UID'] . "');
}
}" );
if(!isset($_SESSION["PM_RUN_OUTSIDE_MAIN_APP"])) {
$oHeadPublisher->addScriptCode( "
if (typeof parent != 'undefined') {
if (parent.showCaseNavigatorPanel) {
parent.showCaseNavigatorPanel('$sStatus');
}
if (parent.setCurrent) {
parent.setCurrent('" . $_GET['UID'] . "');
}
}" );
}
G::RenderPage( 'publish', 'blank' );