BUG 12540 "No muestra ningun mensaje cuando el workpace..." SOLVED
- When the workspace is invalid, no displayed any message - Solved problem, session variables were being destroyed, but now saved if exist any messages * Available from version ProcessMaker-2.5.2-testing.1
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (isset ($_POST['form']['USER_ENV'])) {
|
if (isset ($_POST['form']['USER_ENV'])) {
|
||||||
session_destroy();
|
session_destroy();
|
||||||
session_start();
|
session_start();
|
||||||
@@ -31,10 +32,25 @@ if (isset ($_POST['form']['USER_ENV'])) {
|
|||||||
die ();
|
die ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Save session variables
|
||||||
|
$arraySession = array();
|
||||||
|
|
||||||
|
if (isset($_SESSION["G_MESSAGE"])) {
|
||||||
|
$arraySession["G_MESSAGE"] = $_SESSION["G_MESSAGE"];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($_SESSION["G_MESSAGE_TYPE"])) {
|
||||||
|
$arraySession["G_MESSAGE_TYPE"] = $_SESSION["G_MESSAGE_TYPE"];
|
||||||
|
}
|
||||||
|
|
||||||
|
//Initialize session
|
||||||
session_destroy();
|
session_destroy();
|
||||||
session_start();
|
session_start();
|
||||||
session_regenerate_id();
|
session_regenerate_id();
|
||||||
|
|
||||||
|
//Restore session variables
|
||||||
|
$_SESSION = array_merge($_SESSION, $arraySession);
|
||||||
|
|
||||||
//Required classes for dbArray work
|
//Required classes for dbArray work
|
||||||
//require_once ("propel/Propel.php");
|
//require_once ("propel/Propel.php");
|
||||||
//require_once ("creole/Creole.php");
|
//require_once ("creole/Creole.php");
|
||||||
|
|||||||
Reference in New Issue
Block a user