From e2a023ca5087312371e715cf493510d1279fea7c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 17 Feb 2015 13:37:54 +0100 Subject: [PATCH] =?utf8?q?SL::DB::CustomVariable:=20value=5Fas=5Ftext()=20?= =?utf8?q?f=C3=BCr=20Typ=20'bool'=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Der Typ heißt 'bool' und nicht 'boolean'. --- SL/DB/CustomVariable.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); -- 2.20.1