Minor bug fixes

This commit is contained in:
2020-03-16 20:57:09 +01:00
parent 442f2d6087
commit ff8a79f198
3 changed files with 6 additions and 6 deletions

View File

@@ -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);