Commit 2f178ae7 authored by Marc Egger's avatar Marc Egger
Browse files

fix static form: parse static record id given in report

parent 118f67bb
Pipeline #4080 passed with stages
in 3 minutes and 48 seconds
......@@ -372,7 +372,14 @@ class QuickFormQuery {
$formModeNew = '';
$build = null;
$recordId = $this->store->getVar(SIP_RECORD_ID, STORE_SIP . STORE_TYPO3 . STORE_CLIENT . STORE_ZERO, SANITIZE_ALLOW_DIGIT, $foundInStore);
// Check if there is a recordId specified in Bodytext - parse if it is a query
$rTmp = $this->store->getVar(SIP_RECORD_ID, STORE_TYPO3, SANITIZE_ALLOW_ALL);
if (false !== $rTmp && !ctype_digit($rTmp)) {
$rTmp = $this->evaluate->parse($rTmp);
$this->store->setVar(SIP_RECORD_ID, $rTmp, STORE_TYPO3);
}
$recordId = $this->store->getVar(SIP_RECORD_ID, STORE_TYPO3 . STORE_SIP . STORE_CLIENT . STORE_ZERO, SANITIZE_ALLOW_DIGIT, $foundInStore);
$this->setParameterLanguageFieldName();
$formName = $this->loadFormSpecification($formMode, $recordId, $foundInStore, $formLogMode);
......@@ -1074,13 +1081,6 @@ class QuickFormQuery {
// Preparation for Log, Debug
$this->store->setVar(SYSTEM_FORM, $formName, STORE_SYSTEM);
// Check if there is a recordId specified in Bodytext - as variable or query.
$rTmp = $this->store->getVar(CLIENT_RECORD_ID, STORE_TYPO3, SANITIZE_ALLOW_ALL);
if (false !== $rTmp && !ctype_digit($rTmp)) {
$rTmp = $this->evaluate->parse($rTmp);
$this->store->setVar(CLIENT_RECORD_ID, $rTmp, STORE_TYPO3);
}
// Check for form file changes
FormAsFile::importForm($formName, $this->dbArray[$this->dbIndexQfq]);
......
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