Commit f35f020f authored by Carsten  Rose's avatar Carsten Rose
Browse files

Bug. Fixes #8058. Form/fillStoreVar: broken for TemplateGroup

parent 53d1c90c
Pipeline #1734 passed with stage
in 2 minutes and 9 seconds
...@@ -343,16 +343,6 @@ class QuickFormQuery { ...@@ -343,16 +343,6 @@ class QuickFormQuery {
$foundInStore = ''; $foundInStore = '';
$flagApiStructureReGroup = true; $flagApiStructureReGroup = true;
// Fill STORE_FORM
switch ($formMode) {
case FORM_UPDATE:
case FORM_SAVE:
case FORM_REST:
$fillStoreForm = new FillStoreForm();
$fillStoreForm->process($formMode);
break;
}
$recordId = $this->store->getVar(SIP_RECORD_ID, STORE_SIP . STORE_TYPO3 . STORE_CLIENT . STORE_ZERO); $recordId = $this->store->getVar(SIP_RECORD_ID, STORE_SIP . STORE_TYPO3 . STORE_CLIENT . STORE_ZERO);
$this->setParameterLanguageFieldName(); $this->setParameterLanguageFieldName();
...@@ -375,6 +365,16 @@ class QuickFormQuery { ...@@ -375,6 +365,16 @@ class QuickFormQuery {
// Check 'session expire' happens quite late, cause it can be configured per form. // Check 'session expire' happens quite late, cause it can be configured per form.
Session::checkSessionExpired($this->formSpec[F_SESSION_TIMEOUT_SECONDS]); Session::checkSessionExpired($this->formSpec[F_SESSION_TIMEOUT_SECONDS]);
// Fill STORE_FORM: might need Form.fillStoreVar={{!SELECT ...}}) to provide STORE_VAR - therefore the FORM-definition should already been processed. #8058
switch ($formMode) {
case FORM_UPDATE:
case FORM_SAVE:
case FORM_REST:
$fillStoreForm = new FillStoreForm();
$fillStoreForm->process($formMode);
break;
}
if ($formName !== false) { if ($formName !== false) {
// Validate (only if there is a 'real' form, not a FORM_DELETE with only a table name). // Validate (only if there is a 'real' form, not a FORM_DELETE with only a table name).
// Attention: $formModeNew will be set // Attention: $formModeNew will be set
......
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