diff --git a/extension/Classes/Core/QuickFormQuery.php b/extension/Classes/Core/QuickFormQuery.php index 3d29658cf109d1f8dca302f56b2efed5041ed504..c62dc958ab5ec7313db5d59d096de3f14d96976f 100644 --- a/extension/Classes/Core/QuickFormQuery.php +++ b/extension/Classes/Core/QuickFormQuery.php @@ -472,6 +472,12 @@ class QuickFormQuery { } } + //Change recordId from Multiform to 0 - No row exception possible + if($this->formSpec["multiMode"] !== 'none'){ + $recordId = 0; + $this->store->setVar(SIP_RECORD_ID, $recordId, STORE_SIP); + } + // Fill STORE_BEFORE if ($formName !== false && $this->store->getVar($this->formSpec[F_PRIMARY_KEY], STORE_BEFORE) === false) { $this->store->fillStoreWithRecord($this->formSpec[F_TABLE_NAME], $recordId, @@ -1036,6 +1042,12 @@ class QuickFormQuery { $this->evaluate = new Evaluate($this->store, $this->dbArray[$this->dbIndexData]); } + //Change recordId from Multiform to 0 - No row exception possible + if($form["multiMode"] !== 'none'){ + $recordId = 0; + $this->store->setVar(SIP_RECORD_ID, $recordId, STORE_SIP); + } + // This is needed for filling templateGroup records with their default values // and for evaluating variables in the Form title $this->store->fillStoreWithRecord($form[F_TABLE_NAME], $recordId, $this->dbArray[$this->dbIndexData], $form[F_PRIMARY_KEY]);