Revision e2a023ca
Von Moritz Bunkus vor fast 10 Jahren hinzugefügt
SL/DB/CustomVariable.pm | ||
---|---|---|
89 | 89 |
|
90 | 90 |
die 'not an accessor' if @_ > 1; |
91 | 91 |
|
92 |
if ($type eq 'boolean') {
|
|
92 |
if ($type eq 'bool') { |
|
93 | 93 |
return $self->bool_value ? $::locale->text('Yes') : $::locale->text('No'); |
94 | 94 |
} elsif ($type eq 'timestamp') { |
95 | 95 |
return $::locale->reformat_date( { dateformat => 'yy-mm-dd' }, $self->timestamp_value->ymd, $::myconfig{dateformat}); |
Auch abrufbar als: Unified diff
SL::DB::CustomVariable: value_as_text() für Typ 'bool' gefixt
Der Typ heißt 'bool' und nicht 'boolean'.