]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/IC.pm
Form::header
[kivitendo-erp.git] / SL / IC.pm
index 35718f602f818944d94c1f29ef99818c23b5d933..ad17036509d04c4965a6075938f228688e2a61ea 100644 (file)
--- 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()';
         }