Merge pull request #974 from brayanpereyra/BUG-8281
BUG 8281 I added code to save variable __ERROR__ SOLVED
This commit is contained in:
@@ -545,6 +545,7 @@ function handleErrors ($errno, $errstr, $errfile, $errline)
|
|||||||
if (isset($oPMScript) && isset($_SESSION['APPLICATION'])) {
|
if (isset($oPMScript) && isset($_SESSION['APPLICATION'])) {
|
||||||
G::LoadClass( 'case' );
|
G::LoadClass( 'case' );
|
||||||
$oCase = new Cases();
|
$oCase = new Cases();
|
||||||
|
$oPMScript->aFields['__ERROR__'] = $errstr;
|
||||||
$oCase->updateCase($_SESSION['APPLICATION'], array('APP_DATA' => $oPMScript->aFields));
|
$oCase->updateCase($_SESSION['APPLICATION'], array('APP_DATA' => $oPMScript->aFields));
|
||||||
}
|
}
|
||||||
registerError( 1, $errstr, $errline - 1, $sCode );
|
registerError( 1, $errstr, $errline - 1, $sCode );
|
||||||
@@ -578,6 +579,7 @@ function handleFatalErrors ($buffer)
|
|||||||
}
|
}
|
||||||
global $oPMScript;
|
global $oPMScript;
|
||||||
if (isset($oPMScript) && isset($_SESSION['APPLICATION'])) {
|
if (isset($oPMScript) && isset($_SESSION['APPLICATION'])) {
|
||||||
|
$oPMScript->aFields['__ERROR__'] = $aAux[0];
|
||||||
$oCase->updateCase($_SESSION['APPLICATION'], array('APP_DATA' => $oPMScript->aFields));
|
$oCase->updateCase($_SESSION['APPLICATION'], array('APP_DATA' => $oPMScript->aFields));
|
||||||
}
|
}
|
||||||
G::header( 'Location: ' . $aNextStep['PAGE'] );
|
G::header( 'Location: ' . $aNextStep['PAGE'] );
|
||||||
@@ -586,6 +588,7 @@ function handleFatalErrors ($buffer)
|
|||||||
$_SESSION['_NO_EXECUTE_TRIGGERS_'] = 1;
|
$_SESSION['_NO_EXECUTE_TRIGGERS_'] = 1;
|
||||||
global $oPMScript;
|
global $oPMScript;
|
||||||
if (isset($oPMScript) && isset($_SESSION['APPLICATION'])) {
|
if (isset($oPMScript) && isset($_SESSION['APPLICATION'])) {
|
||||||
|
$oPMScript->aFields['__ERROR__'] = $aAux[0];
|
||||||
$oCase->updateCase($_SESSION['APPLICATION'], array('APP_DATA' => $oPMScript->aFields));
|
$oCase->updateCase($_SESSION['APPLICATION'], array('APP_DATA' => $oPMScript->aFields));
|
||||||
}
|
}
|
||||||
G::header( 'Location: ' . $_SERVER['REQUEST_URI'] );
|
G::header( 'Location: ' . $_SERVER['REQUEST_URI'] );
|
||||||
@@ -602,6 +605,7 @@ function handleFatalErrors ($buffer)
|
|||||||
}
|
}
|
||||||
global $oPMScript;
|
global $oPMScript;
|
||||||
if (isset($oPMScript) && isset($_SESSION['APPLICATION'])) {
|
if (isset($oPMScript) && isset($_SESSION['APPLICATION'])) {
|
||||||
|
$oPMScript->aFields['__ERROR__'] = $aAux[0];
|
||||||
$oCase->updateCase($_SESSION['APPLICATION'], array('APP_DATA' => $oPMScript->aFields));
|
$oCase->updateCase($_SESSION['APPLICATION'], array('APP_DATA' => $oPMScript->aFields));
|
||||||
}
|
}
|
||||||
G::header( 'Location: ' . $aNextStep['PAGE'] );
|
G::header( 'Location: ' . $aNextStep['PAGE'] );
|
||||||
|
|||||||
Reference in New Issue
Block a user