From 6ebdd9ec20b731966bc78cad28ade89701af83eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 5 Sep 2014 16:50:14 +0200 Subject: [PATCH] PriceSource: numerische felder in record_item korrekt parsen --- bin/mozilla/io.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 80fda8657..768572e74 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1939,6 +1939,8 @@ sub _make_record_item { next unless $obj->meta->column($method); if ($obj->meta->column($method)->isa('Rose::DB::Object::Metadata::Column::Date')) { $obj->${\"$method\_as_date"}($::form->{"$method\_$row"}); + } elsif ((ref $obj->meta->column($method)) =~ /^Rose::DB::Object::Metadata::Column::(?:Numeric|Float|DoublePrecsion)$/) { + $obj->${\"$method\_as_number"}($::form->{"$method\_$row"}); } else { $obj->$method($::form->{"$method\_$row"}); } -- 2.20.1