From 65f528cb4455943bb2fb0ca2de5eace07212118b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 3 Feb 2014 10:52:54 +0100 Subject: [PATCH] =?utf8?q?Bei=20value=5Fas=5Ftext=20f=C3=BCr=20project=20c?= =?utf8?q?vars=20richtigen=20Accessor=20f=C3=BCr=20parts=20benutzen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/CustomVariable.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DB/CustomVariable.pm b/SL/DB/CustomVariable.pm index 6073925bf..1d8b5c911 100644 --- a/SL/DB/CustomVariable.pm +++ b/SL/DB/CustomVariable.pm @@ -70,8 +70,8 @@ sub value_as_text { require SL::DB::Part; my $id = int($self->number_value); - my $vendor = $id ? SL::DB::Part->new(id => $id)->load() : 0; - return $vendor ? $vendor->name : ''; + my $part = $id ? SL::DB::Part->new(id => $id)->load() : 0; + return $part ? $part->description : ''; } goto &text_value; # text, textfield, date and select -- 2.20.1