Revision 1dc42a5f
Von Jan Büren vor fast 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 |
|
|
170 | 169 |
# 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'); |
|
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 |
} |
|
172 | 176 |
my $output = $self->render( |
173 | 177 |
'record_links/add_list', |
174 | 178 |
{ output => 0 }, |
Auch abrufbar als: Unified diff
zu #544 Manuelle Auswahl von Dialogbuchung liefert keine Suchtreffer im Popup
Falls die Hilfsfunktion get_all_sorted nicht vorhanden ist, auf get_all
ausweichen.