Skip to content

Commit

Permalink
#147 - add error to flash
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed Aug 9, 2016
1 parent 2dd4b11 commit f0a667c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/alfio/controller/ReservationController.java
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ public String handleReservation(@PathVariable("eventName") String eventName,
return "redirect:" + checkoutUrl;
} catch (Exception e) {
bindingResult.reject(ErrorsCode.STEP_2_PAYMENT_REQUEST_CREATION);
SessionUtil.addToFlash(bindingResult, redirectAttributes);
return redirectReservation(ticketReservation, eventName, reservationId);
}
}
Expand Down

0 comments on commit f0a667c

Please sign in to comment.