X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIC.pm;h=ad17036509d04c4965a6075938f228688e2a61ea;hb=d8a50ddefe779afb7c1f4f6299439b0757d4540b;hp=35718f602f818944d94c1f29ef99818c23b5d933;hpb=85ffde7a577589762b70de99ca08b6f25e9e9d1b;p=kivitendo-erp.git 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()'; }