projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Lieferanten im Autocomplete von Pickern korrekt behandeln
[kivitendo-erp.git]
/
SL
/
DB
/
CustomVariable.pm
diff --git
a/SL/DB/CustomVariable.pm
b/SL/DB/CustomVariable.pm
index
4be4b6e
..
560a2de
100644
(file)
--- a/
SL/DB/CustomVariable.pm
+++ b/
SL/DB/CustomVariable.pm
@@
-103,7
+103,8
@@
sub value_as_text {
require SL::DB::Vendor;
my $id = int($self->number_value);
require SL::DB::Vendor;
my $id = int($self->number_value);
- return $id ? SL::DB::Vendor->new(id => $id)->load() : 0;
+ my $vendor = $id ? SL::DB::Vendor->new(id => $id)->load() : 0;
+ return $vendor ? $vendor->name : '';
} elsif ( $type eq 'part' ) {
require SL::DB::Part;
} elsif ( $type eq 'part' ) {
require SL::DB::Part;