Commit 4309bed7 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixes #6467, Sanitizing a hidden field makes the form 'unsubmitable'

parent 5d8f31db
Pipeline #1149 passed with stage
in 1 minute and 50 seconds
......@@ -218,8 +218,9 @@ class FillStoreForm {
foreach ($this->feSpecNative AS $formElement) {
// Never get a predefined 'id'
if ($formElement[FE_NAME] === COLUMN_ID)
if ($formElement[FE_NAME] === COLUMN_ID) {
continue;
}
// Preparation for Log, Debug
$this->store->setVar(SYSTEM_FORM_ELEMENT, Logger::formatFormElementName($formElement), STORE_SYSTEM);
......@@ -298,7 +299,7 @@ class FillStoreForm {
}
// Check only if there is something.
if ($val !== '' && $formMode != FORM_UPDATE) {
if ($val !== '' && $formMode != FORM_UPDATE && $formElement[FE_MODE] != FE_MODE_HIDDEN) {
$val = Sanitize::sanitize($val, $formElement[FE_CHECK_TYPE], $formElement[FE_CHECK_PATTERN],
$formElement[FE_DECIMAL_FORMAT], SANITIZE_EXCEPTION);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment