Revision 24097357
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/ar.pl | ||
---|---|---|
101 | 101 |
$template->substitute_variables; |
102 | 102 |
|
103 | 103 |
# Clean the current $::form before rebuilding it from the template. |
104 |
my $form_defaults = delete $::form->{form_defaults}; |
|
104 | 105 |
delete @{ $::form }{ grep { !m{^(?:script|login)$}i } keys %{ $::form } }; |
105 | 106 |
|
106 | 107 |
# Fill $::form from the template. |
... | ... | |
148 | 149 |
$::form->{"project_id_${row}"} = $item->project_id; |
149 | 150 |
} |
150 | 151 |
|
152 |
$::form->{$_} = $form_defaults->{$_} for keys %{ $form_defaults // {} }; |
|
153 |
|
|
151 | 154 |
flash('info', $::locale->text("The record template '#1' has been loaded.", $template->template_name)); |
152 | 155 |
|
153 | 156 |
update( |
Auch abrufbar als: Unified diff
Belegvorlagen: Form-Parameter beim Laden über Request vorbelegen können