Commit 4e8a3e3f authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixed #9371. MultiSQL now accepts `_id` too.

parent 6d7ce0c1
Pipeline #5358 passed with stages
in 6 minutes and 5 seconds
......@@ -257,7 +257,7 @@ abstract class AbstractBuildForm {
$this->store->setStore($row, STORE_PARENT_RECORD, true);
$this->store->setVar(F_MULTI_COL_ID, $row[$idName], STORE_PARENT_RECORD); // In case '_id' is used, both '_id' and 'id' should be accessible.
$record = $this->dbArray[$this->dbIndexData]->sql('SELECT * FROM `' . $this->formSpec[F_TABLE_NAME] . '` WHERE `id`=' . $row[F_MULTI_COL_ID], ROW_EXPECT_1);
$record = $this->dbArray[$this->dbIndexData]->sql('SELECT * FROM `' . $this->formSpec[F_TABLE_NAME] . '` WHERE `id`= ?', ROW_EXPECT_1, [$row[$idName]]);
$this->store->setStore($record, STORE_RECORD, true);
$jsonTmp = array();
......
Markdown is supported
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