Revision 2128d3c4
Von Bernd Bleßmann vor etwa 2 Jahren hinzugefügt
SL/Controller/RecordLinks.pm | ||
---|---|---|
|
||
my @with_objects = ($vc);
|
||
push @with_objects, $project if $manager->can($project_id);
|
||
|
||
# show the newest records first (should be better for 80% of the cases TODO sortable click
|
||
my $objects;
|
||
if ($manager->can('get_all_sorted')) {
|
||
$objects = $manager->get_all_sorted(where => \@where, with_objects => \@with_objects, sort_by => 'itime', sort_dir => 'ASC');
|
||
} else {
|
||
$objects = $manager->get_all(where => \@where);
|
||
}
|
||
my $objects = $manager->get_all_sorted(where => \@where, with_objects => \@with_objects, sort_by => 'itime', sort_dir => 'ASC');
|
||
my $output = $self->render(
|
||
'record_links/add_list',
|
||
{ 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.