X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=SL%2FIC.pm;h=ad17036509d04c4965a6075938f228688e2a61ea;hb=1e7d8e31721d592284644da88b3f03ccce98d10c;hp=35718f602f818944d94c1f29ef99818c23b5d933;hpb=dcaee5f7c66a5934bf8cf832ca10b12bd1e1fd4b;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()'; }