Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BudgetMaster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
0342b9d5
Commit
0342b9d5
authored
5 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/deadlocker8/budgetmaster/templates/TemplateController.java
+5
-0
5 additions, 0 deletions
...eadlocker8/budgetmaster/templates/TemplateController.java
with
5 additions
and
0 deletions
src/main/java/de/deadlocker8/budgetmaster/templates/TemplateController.java
+
5
−
0
View file @
0342b9d5
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment