Revision 2128d3c4
Von Bernd Bleßmann vor etwa 2 Jahren hinzugefügt
SL/Controller/RecordLinks.pm | ||
---|---|---|
166 | 166 |
|
167 | 167 |
my @with_objects = ($vc); |
168 | 168 |
push @with_objects, $project if $manager->can($project_id); |
169 |
|
|
169 | 170 |
# show the newest records first (should be better for 80% of the cases TODO sortable click |
170 |
my $objects; |
|
171 |
if ($manager->can('get_all_sorted')) { |
|
172 |
$objects = $manager->get_all_sorted(where => \@where, with_objects => \@with_objects, sort_by => 'itime', sort_dir => 'ASC'); |
|
173 |
} else { |
|
174 |
$objects = $manager->get_all(where => \@where); |
|
175 |
} |
|
171 |
my $objects = $manager->get_all_sorted(where => \@where, with_objects => \@with_objects, sort_by => 'itime', sort_dir => 'ASC'); |
|
176 | 172 |
my $output = $self->render( |
177 | 173 |
'record_links/add_list', |
178 | 174 |
{ output => 0 }, |
Auch abrufbar als: Unified diff
Revert "zu #544 Manuelle Auswahl von Dialogbuchung liefert keine Suchtreffer im Popup"
Da sort_by und sort_dir angegeben sind, kann einfach $manager->get_all
verwendet werden.
This reverts commit 1dc42a5f3ae8b76e99bc99b804dc572dd91554a5.