Revision e02b6c61
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
bin/mozilla/fu.pl | ||
---|---|---|
205 | 205 |
|
206 | 206 |
my @report_params = qw(created_for subject body reference follow_up_date_from follow_up_date_to itime_from itime_to due_only all_users done not_done); |
207 | 207 |
|
208 |
report_generator_set_default_sort('follow_up_date', 1); |
|
209 |
|
|
208 | 210 |
my $follow_ups = FU->follow_ups(map { $_ => $form->{$_} } @report_params); |
209 | 211 |
$form->{rowcount} = scalar @{ $follow_ups }; |
210 | 212 |
|
... | ... | |
222 | 224 |
); |
223 | 225 |
|
224 | 226 |
my @columns = qw(selected follow_up_date created_on subject title created_by_name created_for_user_name done); |
227 |
my $href = build_std_url('action=report', grep { $form->{$_} } @report_params); |
|
228 |
|
|
229 |
foreach my $name (qw(follow_up_date created_on title subject)) { |
|
230 |
my $sortdir = $form->{sort} eq $name ? 1 - $form->{sortdir} : $form->{sortdir}; |
|
231 |
$column_defs{$name}->{link} = $href . "&sort=$name&sortdir=$sortdir"; |
|
232 |
} |
|
225 | 233 |
|
226 | 234 |
my @options; |
227 | 235 |
|
... | ... | |
253 | 261 |
|
254 | 262 |
$report->set_export_options('report', @report_params); |
255 | 263 |
|
256 |
$report->set_sort_indicator('follow_up_date', 1);
|
|
264 |
$report->set_sort_indicator($form->{sort}, $form->{sortdir});
|
|
257 | 265 |
|
258 | 266 |
$report->set_options('raw_top_info_text' => $form->parse_html_template('fu/report_top', { 'OPTIONS' => \@options }), |
259 | 267 |
'raw_bottom_info_text' => $form->parse_html_template('fu/report_bottom', { 'HIDDEN' => \@hidden_report_params }), |
Auch abrufbar als: Unified diff
Wiedervorlagenbericht sortierbar gemacht.