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:
6634ba4
)
SL::DB::CustomVariable: value_as_text() für Typ 'bool' gefixt
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 17 Feb 2015 12:37:54 +0000
(13:37 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 17 Feb 2015 14:30:39 +0000
(15:30 +0100)
Der Typ heißt 'bool' und nicht 'boolean'.
SL/DB/CustomVariable.pm
patch
|
blob
|
history
diff --git
a/SL/DB/CustomVariable.pm
b/SL/DB/CustomVariable.pm
index
fb990b0
..
7f18f6a
100644
(file)
--- a/
SL/DB/CustomVariable.pm
+++ b/
SL/DB/CustomVariable.pm
@@
-89,7
+89,7
@@
sub value_as_text {
die 'not an accessor' if @_ > 1;
- if ($type eq 'bool
ean
') {
+ if ($type eq 'bool') {
return $self->bool_value ? $::locale->text('Yes') : $::locale->text('No');
} elsif ($type eq 'timestamp') {
return $::locale->reformat_date( { dateformat => 'yy-mm-dd' }, $self->timestamp_value->ymd, $::myconfig{dateformat});