X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/1b9c915f724d784318ad4f065294703828ed5a4e..6ee486a53d467fe2cb5aa5a971e5de0755ab6d0c:/SL/DB/CustomVariable.pm 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