bugfix/HOR-2067
This commit is contained in:
@@ -69,7 +69,10 @@ G::LoadClass( 'pmScript' );
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'derivation' );
|
||||
|
||||
//require_once 'classes/model/Event.php';
|
||||
//If didn't is not submitted any variable and the $_POST is empty
|
||||
if (!isset($_POST['form'])) {
|
||||
$_POST['form'] = array();
|
||||
}
|
||||
|
||||
/* GET , POST & $_SESSION Vars */
|
||||
/* Process the info */
|
||||
|
||||
@@ -57,6 +57,11 @@ if (isset( $_SESSION['STEP_POSITION'] )) {
|
||||
unset( $_SESSION['STEP_POSITION'] );
|
||||
}
|
||||
|
||||
//If didn't is not submitted any variable and the $_POST is empty
|
||||
if (!isset($_POST['form'])) {
|
||||
$_POST['form'] = array();
|
||||
}
|
||||
|
||||
/* Process */
|
||||
try {
|
||||
$oCase = new Cases();
|
||||
|
||||
@@ -103,6 +103,11 @@ try {
|
||||
|
||||
$arrayVariableDocumentToDelete = [];
|
||||
|
||||
//If didn't is not submitted any variable and the $_POST is empty
|
||||
if (!isset($_POST['form'])) {
|
||||
$_POST['form'] = array();
|
||||
}
|
||||
|
||||
if (array_key_exists('__VARIABLE_DOCUMENT_DELETE__', $_POST['form'])) {
|
||||
if (is_array($_POST['form']['__VARIABLE_DOCUMENT_DELETE__']) && !empty($_POST['form']['__VARIABLE_DOCUMENT_DELETE__'])) {
|
||||
$arrayVariableDocumentToDelete = $_POST['form']['__VARIABLE_DOCUMENT_DELETE__'];
|
||||
|
||||
@@ -27,6 +27,11 @@ $dynaForm = DynaformPeer::retrieveByPK($_GET["UID"]);
|
||||
|
||||
$flagDynaFormNewVersion = !is_null($dynaForm) && $dynaForm->getDynVersion() == 2;
|
||||
|
||||
//If didn't is not submitted any variable and the $_POST is empty
|
||||
if (!isset($_POST['form'])) {
|
||||
$_POST['form'] = array();
|
||||
}
|
||||
|
||||
if ($flagDynaFormNewVersion) {
|
||||
$dataForm = $_POST["form"];
|
||||
}
|
||||
@@ -205,8 +210,9 @@ if (isset( $_FILES["form"]["name"] ) && count( $_FILES["form"]["name"] ) > 0) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Define the STEP_POSITION
|
||||
$ex = isset($_GET['ex']) ? $_GET['ex'] : 0;
|
||||
//go to the next step
|
||||
$aNextStep = $oCase->getNextSupervisorStep( $_SESSION['PROCESS'], $_SESSION['STEP_POSITION'] );
|
||||
G::header( 'Location: cases_StepToRevise?type=DYNAFORM&ex=' . $_GET['ex'] . '&PRO_UID=' . $_SESSION['PROCESS'] . '&DYN_UID=' . $aNextStep['UID'] . '&APP_UID=' . $_SESSION['APPLICATION'] . '&position=' . $aNextStep['POSITION'] . '&DEL_INDEX=' . $_SESSION['INDEX'] );
|
||||
G::header( 'Location: cases_StepToRevise?type=DYNAFORM&ex=' . $ex . '&PRO_UID=' . $_SESSION['PROCESS'] . '&DYN_UID=' . $aNextStep['UID'] . '&APP_UID=' . $_SESSION['APPLICATION'] . '&position=' . $aNextStep['POSITION'] . '&DEL_INDEX=' . $_SESSION['INDEX'] );
|
||||
die();
|
||||
@@ -43,6 +43,11 @@ try {
|
||||
$Fields["APP_DATA"] = array_merge( $Fields["APP_DATA"], G::getSystemConstants() );
|
||||
$Fields["APP_DATA"] = array_merge( $Fields["APP_DATA"], $_POST["form"] );
|
||||
|
||||
//If didn't is not submitted any variable and the $_POST is empty
|
||||
if (!isset($_POST['form'])) {
|
||||
$_POST['form'] = array();
|
||||
}
|
||||
|
||||
//save data in PM Tables if necessary
|
||||
$newValues = array ();
|
||||
foreach ($_POST['form'] as $sField => $sAux) {
|
||||
|
||||
Reference in New Issue
Block a user