Minor bug fixes
This commit is contained in:
@@ -168,7 +168,7 @@ public class RecurringTransactionController {
|
||||
final ResponseEntity<String> response = new StringTemplate().exchange(builder);
|
||||
final ResponseReason responseReason = ResponseReason.fromResponseEntity(response);
|
||||
|
||||
if (!ResponseReason.OK.equals(responseReason)) {
|
||||
if (!ResponseReason.CREATED.equals(responseReason)) {
|
||||
model.addAttribute("errorMessage", responseReason.name());
|
||||
model.addAttribute("subTitle", sub);
|
||||
ControllerUtils.addVersionAttribute(model, this.financerConfig);
|
||||
@@ -225,7 +225,7 @@ public class RecurringTransactionController {
|
||||
final ResponseEntity<String> response = new StringTemplate().exchange(builder);
|
||||
final ResponseReason responseReason = ResponseReason.fromResponseEntity(response);
|
||||
|
||||
if (!ResponseReason.OK.equals(responseReason)) {
|
||||
if (!ResponseReason.CREATED.equals(responseReason)) {
|
||||
model.addAttribute("errorMessage", responseReason.name());
|
||||
model.addAttribute("subTitle", form.getSubTitle());
|
||||
ControllerUtils.addVersionAttribute(model, this.financerConfig);
|
||||
|
||||
Reference in New Issue
Block a user