Debugmodi umgeschrieben auf das viel schoenere shiftingformat.
[kivitendo-erp.git] / SL / LICENSES.pm
index ce1e799..7d5f4ba 100644 (file)
@@ -69,8 +69,8 @@ sub save_license {
   $sth->finish();
 
   if ($form->{own_product}) {
-    $form->update_balance($dbh, "parts", "onhand", qq|id = $form->{parts_id}|,
-                          1);
+    $form->update_balance($dbh, "parts", "onhand", qq|id = ?|,
+                          1, $form->{parts_id});
   }
 
   $dbh->disconnect();