Revision 24097357
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/gl.pl | ||
---|---|---|
96 | 96 |
$template->substitute_variables; |
97 | 97 |
|
98 | 98 |
# Clean the current $::form before rebuilding it from the template. |
99 |
my $form_defaults = delete $::form->{form_defaults}; |
|
99 | 100 |
delete @{ $::form }{ grep { !m{^(?:script|login)$}i } keys %{ $::form } }; |
100 | 101 |
|
101 | 102 |
my $dummy_form = {}; |
... | ... | |
138 | 139 |
$::form->{"${_}_${row}"} = $item->$_ for qw(source memo project_id); |
139 | 140 |
} |
140 | 141 |
|
142 |
$::form->{$_} = $form_defaults->{$_} for keys %{ $form_defaults // {} }; |
|
143 |
|
|
141 | 144 |
flash('info', $::locale->text("The record template '#1' has been loaded.", $template->template_name)); |
142 | 145 |
|
143 | 146 |
update( |
Auch abrufbar als: Unified diff
Belegvorlagen: Form-Parameter beim Laden über Request vorbelegen können