projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b8e9fc
)
Bei value_as_text für project cvars richtigen Accessor für parts benutzen.
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Mon, 3 Feb 2014 09:52:54 +0000
(10:52 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Mon, 3 Feb 2014 09:52:54 +0000
(10:52 +0100)
SL/DB/CustomVariable.pm
patch
|
blob
|
history
diff --git
a/SL/DB/CustomVariable.pm
b/SL/DB/CustomVariable.pm
index
6073925
..
1d8b5c9
100644
(file)
--- 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