From 13704cf568f360e2bbd39e27d30bbc0a33c4a453 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 27 Jan 2016 14:31:48 +0100 Subject: [PATCH] Letter: Anzeigesicherheit gegen nicht mehr existierende Kunden --- SL/Controller/Letter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/Letter.pm b/SL/Controller/Letter.pm index 8e588d9f8..90fd26b89 100644 --- a/SL/Controller/Letter.pm +++ b/SL/Controller/Letter.pm @@ -354,7 +354,7 @@ sub prepare_report { obj_link => sub { $self->url_for(action => 'edit', 'letter.id' => $_[0]->id, callback => $self->models->get_callback) } }, letternumber => { text => t8('Letternumber'), sub => sub { $_[0]->letternumber }, obj_link => sub { $self->url_for(action => 'edit', 'letter.id' => $_[0]->id, callback => $self->models->get_callback) } }, - vc_id => { text => t8('Customer'), sub => sub { $_[0]->customer->displayable_name } }, + vc_id => { text => t8('Customer'), sub => sub { SL::DB::Manager::Customer->find_by_or_create(id => $_[0]->vc_id)->displayable_name } }, contact => { text => t8('Contact'), sub => sub { $_[0]->contact ? $_[0]->contact->full_name : '' } }, ); -- 2.20.1