Loeschen von Drafts flexibler.
[kivitendo-erp.git] / bin / mozilla / ap.pl
index 54a9c94..1892497 100644 (file)
@@ -1019,7 +1019,7 @@ sub post {
       $form->save_history($form->dbconnect(\%myconfig));
     }
     # /saving the history 
-    remove_draft();
+    remove_draft() if $form->{remove_draft};
     $form->redirect($locale->text('Transaction posted!'));
   }
   $form->error($locale->text('Cannot post transaction!'));