Commit 6f5aae71 authored by Elias Villiger's avatar Elias Villiger
Browse files

Bug #3192 - Fill STORE_RECORD before loading table title

parent 2d3134bc
......@@ -652,6 +652,10 @@ class QuickFormQuery {
unset($form[FE_FILL_STORE_VAR]);
}
// this is needed for filling templateGroup records with their default values
// and for evaluating variables in the Form title
$this->fillStoreWithRecord($form[F_TABLE_NAME], $recordId, STORE_RECORD);
$formSpec = $this->eval->parseArray($form);
// Setting defaults later is too late.
......@@ -678,9 +682,6 @@ class QuickFormQuery {
// Set F_FINAL_DELETE_FORM
$formSpec[F_FINAL_DELETE_FORM] = ($formSpec[F_EXTRA_DELETE_FORM] != '') ? $formSpec[F_EXTRA_DELETE_FORM] : $formSpec[F_NAME];
// this is needed for filling templateGroup records with their default values
$this->fillStoreWithRecord($formSpec[F_TABLE_NAME], $recordId, STORE_RECORD);
// Fire FE_FILL_STORE_VAR after the primary form record has been loaded
if (!empty($fillStoreVar)) {
$rows = $this->eval->parse($fillStoreVar);
......
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