form rx_ajax 사용시 XE_VALIDATOR_MESSAGE 세션을 이용한 메세지 표시가 되지 않는 문제 수정

This commit is contained in:
conory 2019-12-25 23:01:37 +09:00
parent 9cfd4ca363
commit 9e6005ccbc
3 changed files with 3 additions and 2 deletions

View file

@ -165,6 +165,7 @@ class Context
*/
private static $_reserved_keys = array(
'_rx_ajax_compat' => true,
'_rx_ajax_form' => true,
'_rx_csrf_token' => true,
'_rx_target_iframe' => true,
);

View file

@ -807,7 +807,7 @@ class ModuleHandler extends Handler
$procResult = $oModule->proc();
$methodList = array('XMLRPC' => 1, 'JSON' => 1, 'JS_CALLBACK' => 1);
if(!$oModule->stop_proc && !isset($methodList[Context::getRequestMethod()]))
if(!$oModule->stop_proc && (!isset($methodList[Context::getRequestMethod()]) || isset($_POST['_rx_ajax_form'])))
{
$error = $oModule->getError();
$message = $oModule->getMessage();

View file

@ -402,7 +402,7 @@
}, 1000);
form.submit();
} else {
window.exec_json('raw', form.serialize(), callback_success, callback_error);
window.exec_json('raw', form.serialize() + '&_rx_ajax_form=1', callback_success, callback_error);
}
});