X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FCustomVariable.pm;h=1d8b5c9113221e4caf2581caace9a874b1334a47;hb=bb7e2e85d50544c6b72eb40d57f513eeacf578d5;hp=6073925bfffa85ec4ccab97d929012a3449d5e8f;hpb=9bfde8af91ac295afb6e68b8580f000fd6051f15;p=kivitendo-erp.git 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