From: Moritz Bunkus Date: Wed, 24 Apr 2013 08:32:13 +0000 (+0200) Subject: Zwei Datenbankwarnungen vermeiden: cannot convert '' to number X-Git-Tag: release-3.1.0beta1~474 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cb575f7dcf586c7e32f2c2f72f67c8a6c6af914d;p=kivitendo-erp.git Zwei Datenbankwarnungen vermeiden: cannot convert '' to number --- diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 9c76b4521..d15676739 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1596,11 +1596,11 @@ sub print_form { # prepare meta information for template introspection $form->{template_meta} = { formname => $form->{formname}, - language => SL::DB::Manager::Language->find_by_or_create(id => $form->{language_id}), + language => SL::DB::Manager::Language->find_by_or_create(id => $form->{language_id} || undef), format => $form->{format}, media => $form->{media}, extension => $extension, - printer => SL::DB::Manager::Printer->find_by_or_create(id => $form->{printer_id}), + printer => SL::DB::Manager::Printer->find_by_or_create(id => $form->{printer_id} || undef), today => DateTime->today, };