From e40c9d4da8cedc8f5151661887f6c9a2da8237c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 26 Jul 2017 15:21:19 +0200 Subject: [PATCH] =?utf8?q?Erster=20Schritt=20f=C3=BCr=20#278?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Auswahl von manuellen Verknüpfung von Neu nach Alt sortieren --- SL/Controller/RecordLinks.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Controller/RecordLinks.pm b/SL/Controller/RecordLinks.pm index 03d7b81c7..b71467752 100644 --- a/SL/Controller/RecordLinks.pm +++ b/SL/Controller/RecordLinks.pm @@ -134,7 +134,8 @@ sub action_ajax_add_list { my @with_objects = ($vc); push @with_objects, $project if $manager->can($project_id); - my $objects = $manager->get_all_sorted(where => \@where, with_objects => \@with_objects); + # show the newest records first (should be better for 80% of the cases TODO sortable click + 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 }, -- 2.20.1