Revision 30f495fc
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
SL/Controller/RecordLinks.pm | ||
---|---|---|
168 | 168 |
push @with_objects, $project if $manager->can($project_id); |
169 | 169 |
|
170 | 170 |
# show the newest records first (should be better for 80% of the cases TODO sortable click |
171 |
my $objects = $manager->get_all_sorted(where => \@where, with_objects => \@with_objects, sort_by => 'itime', sort_dir => 'ASC');
|
|
171 |
my $objects = $manager->get_all(where => \@where, with_objects => \@with_objects, sort_by => 'itime', sort_dir => 'ASC'); |
|
172 | 172 |
my $output = $self->render( |
173 | 173 |
'record_links/add_list', |
174 | 174 |
{ output => 0 }, |
Auch abrufbar als: Unified diff
Verknüpfte Belege: Controller: get_all statt get_all_sorted
Da sort_by und sort_dir angegeben sind, kann einfach $manager->get_all
verwendet werden.
Ansonsten bekam der Anwender keine Links geliefert, wenn der Manager
kein _sorted kennt.
Refs #544 (redmine)