issue 351 fixed INPUT_ERROR value

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9522 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-10-10 06:06:43 +00:00
parent fb79643ea2
commit 0af5bfc894

View file

@ -262,6 +262,7 @@
// If there is no such action in the module object
if(!isset($xml_info->action->{$this->act}) || !method_exists($oModule, $this->act))
{
if(!Context::isInstalled())
{
$this->error = 'msg_invalid_request';
@ -422,6 +423,7 @@
$this->error = $message;
if (!$redirectUrl && Context::get('error_return_url')) $redirectUrl = Context::get('error_return_url');
$this->_setInputValueToSession();
}
else
{
@ -463,6 +465,7 @@
function _setInputValueToSession()
{
$requestVars = Context::getRequestVars();
unset($requestVars->act, $requestVars->mid, $requestVars->vid, $requestVars->success_return_url, $requestVars->error_return_url);
foreach($requestVars AS $key=>$value) $_SESSION['INPUT_ERROR'][$key] = $value;
}