X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FController%2FProject.pm;fp=SL%2FController%2FProject.pm;h=9a75836fe1f3405630bc6a575c487d30aacf9a83;hb=e5d70ebcb6b7c240378ac5b1a04f12716e15ab33;hp=fc72036ee050b9ddf70120e0269283e658cfc757;hpb=522eb5a4a138c665b00a7f99a9e2b66d7d44857d;p=kivitendo-erp.git diff --git a/SL/Controller/Project.pm b/SL/Controller/Project.pm index fc72036ee..9a75836fe 100644 --- a/SL/Controller/Project.pm +++ b/SL/Controller/Project.pm @@ -263,7 +263,8 @@ sub prepare_report { 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('Status') }, - customer => { raw_data => sub { $_[0]->customer_id ? $self->presenter->customer($_[0]->customer, display => 'table-cell', callback => $callback) : '' } }, + customer => { sub => sub { !$_[0]->customer_id ? '' : $_[0]->customer->name }, + raw_data => sub { !$_[0]->customer_id ? '' : $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') },