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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
BudgetMaster
Commits
e8eaf278
Commit
e8eaf278
authored
2 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
#724 - redirect back to csv import page after creation of a new transaction
parent
793b2bf5
No related branches found
No related tags found
No related merge requests found
Pipeline
#6973
passed
2 years ago
Stage: external
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
BudgetMasterServer/src/main/java/de/deadlocker8/budgetmaster/transactions/TransactionController.java
+8
-1
8 additions, 1 deletion
...ker8/budgetmaster/transactions/TransactionController.java
with
8 additions
and
1 deletion
BudgetMasterServer/src/main/java/de/deadlocker8/budgetmaster/transactions/TransactionController.java
+
8
−
1
View file @
e8eaf278
...
...
@@ -31,6 +31,7 @@ import org.springframework.ui.Model;
import
org.springframework.util.StringUtils
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.context.request.RequestAttributes
;
import
org.springframework.web.context.request.WebRequest
;
import
javax.servlet.http.HttpServletRequest
;
...
...
@@ -58,6 +59,7 @@ public class TransactionController extends BaseController
public
static
final
String
NEW_TRANSACTION
=
"transactions/newTransactionNormal"
;
public
static
final
String
CHANGE_TYPE
=
"transactions/changeTypeModal"
;
public
static
final
String
RECURRING_OVERVIEW
=
"transactions/recurringOverview"
;
public
static
final
String
REDIRECT_IMPORT
=
"redirect:/transactionImport"
;
}
private
static
final
String
CONTINUE
=
"continue"
;
...
...
@@ -200,7 +202,6 @@ public class TransactionController extends BaseController
redirectUrl
=
ReturnValues
.
NEW_TRANSACTION
;
}
final
boolean
isContinueActivated
=
action
.
equals
(
CONTINUE
);
return
handleRedirect
(
servletRequest
,
request
,
model
,
transaction
.
getID
()
!=
null
,
transaction
,
bindingResult
,
date
,
redirectUrl
,
isContinueActivated
);
}
...
...
@@ -261,6 +262,12 @@ public class TransactionController extends BaseController
return
ReturnValues
.
REDIRECT_NEW_TRANSACTION
;
}
// redirect back to csv import if import is active
if
(
request
.
getAttribute
(
TransactionImportController
.
RequestAttributeNames
.
CSV_TRANSACTIONS
,
RequestAttributes
.
SCOPE_SESSION
)
!=
null
)
{
return
ReturnValues
.
REDIRECT_IMPORT
;
}
return
ReturnValues
.
REDIRECT_ALL_ENTITIES
;
}
...
...
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