From: Moritz Bunkus Date: Tue, 17 Feb 2015 12:37:54 +0000 (+0100) Subject: SL::DB::CustomVariable: value_as_text() für Typ 'bool' gefixt X-Git-Tag: release-3.2.0~34 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e2a023ca5087312371e715cf493510d1279fea7c;p=kivitendo-erp.git SL::DB::CustomVariable: value_as_text() für Typ 'bool' gefixt Der Typ heißt 'bool' und nicht 'boolean'. --- diff --git a/SL/DB/CustomVariable.pm b/SL/DB/CustomVariable.pm index fb990b0ce..7f18f6a8d 100644 --- 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 'boolean') { + 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});