Commit 1d6abb6f authored by Carsten  Rose's avatar Carsten Rose

Fixes #10177: Fill STORE_RECORD directly after form INSERT/UPDATE - '{{id:R}}'...

Fixes #10177: Fill STORE_RECORD directly after form INSERT/UPDATE - '{{id:R}}' is now usable in processing Glue inserts.
parent 203359e4
Pipeline #3329 passed with stages
in 3 minutes and 40 seconds
......@@ -550,9 +550,6 @@ class QuickFormQuery {
$rc = $save->process();
// Reload fresh saved record and fill STORE_RECORD with it.
$this->store->fillStoreWithRecord($this->formSpec[F_TABLE_NAME], $rc, $this->dbArray[$this->dbIndexData], $this->formSpec[F_PRIMARY_KEY]);
$save->processAllUploads($rc);
// Action: After*, Sendmail
......
......@@ -309,6 +309,9 @@ class Save {
}
}
// Reload fresh saved record and fill STORE_RECORD with it. Do this before nativeDoSlave().
$this->store->fillStoreWithRecord($this->formSpec[F_TABLE_NAME], $recordId, $this->db, $this->formSpec[F_PRIMARY_KEY]);
$this->nativeDoSlave($recordId);
return $recordId;
......
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