Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a6433753

Von Sven Schöling vor fast 10 Jahren hinzugefügt

  • ID a64337532dfca30b712f0a02aeb2df557c0b2c47
  • Vorgänger d47c3124
  • Nachfolger 55bc5c2d

PriceSource: Bessere Behandlung von Boolean Werten

Unterschiede anzeigen:

SL/Controller/PriceSource.pm
97 97
      $obj->${\"$method\_as_date"}($::form->{"$method\_$row"});
98 98
    } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::(?:Numeric|Float|DoublePrecsion)$/) {
99 99
      $obj->${\"$method\_as_number"}($::form->{"$method\_$row"});
100
    } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::Boolean$/) {
101
      $obj->$method(!!$::form->{$method});
100 102
    } else {
101 103
      $obj->$method($::form->{"$method\_$row"});
102 104
    }
......
147 149
      $obj->${\"$method\_as_date"}($::form->{$method});
148 150
    } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::(?:Numeric|Float|DoublePrecsion)$/) {
149 151
      $obj->${\"$method\_as\_number"}($::form->{$method});
152
    } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::Boolean$/) {
153
      $obj->$method(!!$::form->{$method});
150 154
    } else {
151 155
      $obj->$method($::form->{$method});
152 156
    }
bin/mozilla/io.pl
1958 1958
      $obj->${\"$method\_as_date"}($::form->{"$method\_$row"});
1959 1959
    } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::(?:Numeric|Float|DoublePrecsion)$/) {
1960 1960
      $obj->${\"$method\_as_number"}($::form->{"$method\_$row"});
1961
    } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::Boolean$/) {
1962
      $obj->$method(!!$::form->{$method});
1961 1963
    } else {
1962 1964
      $obj->$method($::form->{"$method\_$row"});
1963 1965
    }
......
2004 2006
      $obj->${\"$method\_as_date"}($::form->{$method});
2005 2007
    } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::(?:Numeric|Float|DoublePrecsion)$/) {
2006 2008
      $obj->${\"$method\_as_number"}($::form->{$method});
2009
    } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::Boolean$/) {
2010
      $obj->$method(!!$::form->{$method});
2007 2011
    } else {
2008 2012
      $obj->$method($::form->{$method});
2009 2013
    }

Auch abrufbar als: Unified diff