From 2eb2bc5583f28aa5f9bb18c2cd314995d0570f8c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 7 May 2013 15:25:48 +0200 Subject: [PATCH] Projektliste: Sortierung an bob angepasst und Spalten verlinkt --- SL/Controller/Project.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/Controller/Project.pm b/SL/Controller/Project.pm index 9b34a5aa9..8c8620904 100644 --- a/SL/Controller/Project.pm +++ b/SL/Controller/Project.pm @@ -204,15 +204,15 @@ sub prepare_report { my $report = SL::ReportGenerator->new(\%::myconfig, $::form); $self->{report} = $report; - my @columns = qw(projectnumber description customer active valid project_type project_status); + my @columns = qw(project_status customer projectnumber description active valid project_type); my @sortable = qw(projectnumber description customer project_type project_status); my %column_defs = ( projectnumber => { obj_link => sub { $self->url_for(action => 'edit', id => $_[0]->id, callback => $callback) } }, description => { obj_link => sub { $self->url_for(action => 'edit', id => $_[0]->id, callback => $callback) } }, project_type => { sub => sub { $_[0]->project_type->description } }, - project_status => { sub => sub { $_[0]->project_status->description }, text => t8('Project Status') }, - customer => { sub => sub { $_[0]->customer ? $_[0]->customer->name : '' } }, + project_status => { sub => sub { $_[0]->project_status->description }, text => t8('Status') }, + customer => { raw_data => sub { $self->presenter->customer($_[0]->customer, display => 'table-cell', callback => $callback) } }, active => { sub => sub { $_[0]->active ? $::locale->text('Active') : $::locale->text('Inactive') }, text => $::locale->text('Active') }, valid => { sub => sub { $_[0]->valid ? $::locale->text('Valid') : $::locale->text('Invalid') }, -- 2.20.1