Skip to content
Snippets Groups Projects
Commit 0342b9d5 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #521 - use template: template ID is set as transaction ID

parent 7c112a8b
No related branches found
No related tags found
No related merge requests found
...@@ -125,6 +125,11 @@ public class TemplateController extends BaseController ...@@ -125,6 +125,11 @@ public class TemplateController extends BaseController
} }
final Template template = templateOptional.get(); final Template template = templateOptional.get();
// set ID to null, otherwise the transaction form is prefilled with the template ID and saving the transaction
// may then override an existing transactions if the ID is also already used in transactions table
template.setID(null);
templateService.prepareTemplateForNewTransaction(template, true); templateService.prepareTemplateForNewTransaction(template, true);
boolean isPayment = true; boolean isPayment = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment