BUG 11150 "Add a PM variable to the cases step" SOLVED
- Add a PM variable to the cases step - Problema resuelto, se validara la variable $_SESSION["PROCESSMAKER_RUN_OUTSIDE_MAIN_APPLICATION"], si se ha definido la variable no se ejecutara el fragmento de codigo, si variable no esta definido se ejecutara el fragmento de codigo. * Available from version ProcessMaker-2.5.1-testing.2
This commit is contained in:
@@ -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["PROCESSMAKER_RUN_OUTSIDE_MAIN_APPLICATION"])) {
|
||||
$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["PROCESSMAKER_RUN_OUTSIDE_MAIN_APPLICATION"])) {
|
||||
$oHeadPublisher->addScriptCode( "
|
||||
if (typeof parent != 'undefined') {
|
||||
if (parent.showCaseNavigatorPanel) {
|
||||
parent.showCaseNavigatorPanel('$sStatus');
|
||||
}
|
||||
|
||||
if (parent.setCurrent) {
|
||||
parent.setCurrent('" . $_GET['UID'] . "');
|
||||
}
|
||||
}" );
|
||||
|
||||
}
|
||||
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user