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