Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e2a023ca

Von Moritz Bunkus vor fast 10 Jahren hinzugefügt

  • ID e2a023ca5087312371e715cf493510d1279fea7c
  • Vorgänger 6634ba45
  • Nachfolger 2bb1c961

SL::DB::CustomVariable: value_as_text() für Typ 'bool' gefixt

Der Typ heißt 'bool' und nicht 'boolean'.

Unterschiede anzeigen:

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