Commit 1b25afad authored by Elias Villiger's avatar Elias Villiger
Browse files

Bug #5467 - Fill Record Store when evaluating min/max parameters

parent b5b3f75f
Pipeline #866 passed with stage
in 1 minute and 43 seconds
...@@ -68,11 +68,11 @@ class FillStoreForm { ...@@ -68,11 +68,11 @@ class FillStoreForm {
$this->feSpecNative = $this->loadFormElementsBasedOnSIP(); $this->feSpecNative = $this->loadFormElementsBasedOnSIP();
// TODO EV 5467 $form = $this->store->getVar(SIP_FORM, STORE_SIP, SANITIZE_ALLOW_ALNUMX);
$form = $this->feSpecNative['form']; $recordId = $this->store->getVar(SIP_RECORD_ID, STORE_SIP, SANITIZE_ALLOW_DIGIT);
$table = $form . 'magic'; $tableFromFormSql = "SELECT f.tableName FROM Form AS f WHERE f.name=?";
$recordId = $this->feSpecNative['r']; $tableVars = $this->dbArray[$this->dbIndexQfq]->sql($tableFromFormSql,ROW_EXPECT_1, [$form]);
$this->store->fillStoreWithRecord("Test", 1, $this->dbArray[$this->dbIndexData]); $this->store->fillStoreWithRecord($tableVars[F_TABLE_NAME], $recordId, $this->dbArray[$this->dbIndexData]);
$this->evaluate = new Evaluate($this->store, $this->dbArray[$this->dbIndexData]); $this->evaluate = new Evaluate($this->store, $this->dbArray[$this->dbIndexData]);
......
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