Skip to content
Snippets Groups Projects
Commit 097f9232 authored by enured's avatar enured
Browse files

F13527. recordId variable and record id from sip store will change to zero if...

F13527. recordId variable and record id from sip store will change to zero if multi-mode from form is not 'none'.
parent f431e75e
No related branches found
No related tags found
2 merge requests!403Button is seperated in own div with class row and col-md-12. Now it will be...,!381F13527. recordId variable and record id from sip store will change to zero if...
Pipeline #6640 passed
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment