Revision 70f212be
Von Cem Aydin vor mehr als 1 Jahr hinzugefügt
SL/Presenter/DatePeriod.pm | ||
---|---|---|
57 | 57 |
); |
58 | 58 |
my %defaults_dialog; |
59 | 59 |
for (keys %fallback_dateperiod_dialog) { |
60 |
$defaults_dialog{$_} = $::form->{'report_generator_hidden_' . $id . '_selected_preset_' . $_} // |
|
60 |
$defaults_dialog{$_} = $::form->{$id . '_selected_preset_' . $_} // |
|
61 |
$::form->{'report_generator_hidden_' . $id . '_selected_preset_' . $_} // |
|
61 | 62 |
$fallback_dateperiod_dialog{$_}; |
62 | 63 |
} |
63 | 64 |
return \%defaults_dialog; |
... | ... | |
212 | 213 |
my @hidden_variables = qw(chart_id); # e.g. |
213 | 214 |
populate_hidden_variables('dateperiod', \@hidden_variables); |
214 | 215 |
|
215 |
|
|
216 | 216 |
=item C<get_dialog_defaults_from_report_generator $name> |
217 | 217 |
|
218 | 218 |
Convenience function to get the dialog defaults from hidden report generator |
219 | 219 |
fields. (Use in controller.) |
220 | 220 |
|
221 |
First uses form fields: C<$id . '_selected_preset_' ...>. |
|
222 |
Then report generator fields: C<'report_generator_hidden_' . $id . '_selected_preset_' ...> |
|
223 |
|
|
221 | 224 |
C<$name> name of the date picker. |
222 | 225 |
|
223 | 226 |
=item C<populate_hidden_variables $name $hidden_variables_ref> |
Auch abrufbar als: Unified diff
Presenter DatePeriod convenience function Default auf form Elemente hinzugefügt