X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/c920fab5f80d6e47db5447445a4fe37a19478071..503655261b9f86498c36b634e387938ecd8359a6:/SL/IC.pm diff --git a/SL/IC.pm b/SL/IC.pm index 35718f602..ad1703650 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -504,7 +504,11 @@ sub save { $value = $form->parse_amount($myconfig, $form->{"lastcost_$i"}); if ($value == $form->{"old_lastcost_$i"}) { - $lastupdate = $dbh->quote($form->{"lastupdate_$i"}); + if ($form->{"lastupdate_$i"} eq "") { + $lastupdate = 'now()'; + } else { + $lastupdate = $dbh->quote($form->{"lastupdate_$i"}); + } } else { $lastupdate = 'now()'; }