X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/85ffde7a577589762b70de99ca08b6f25e9e9d1b..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()'; }