mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Update SpeedOfferController.java
This commit is contained in:
parent
f2324efb9f
commit
042f8f2731
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ public class SpeedOfferController {
|
||||||
Client client = this.clientService.getCurrentclient();
|
Client client = this.clientService.getCurrentclient();
|
||||||
if(speedOffer.getClient().equals(client)) {
|
if(speedOffer.getClient().equals(client)) {
|
||||||
speedOffer.setType(StatusOffer.active);
|
speedOffer.setType(StatusOffer.active);
|
||||||
speedOffer.setCode("SE-"+speedOfferId);
|
speedOffer.setCode("SP-"+speedOfferId);
|
||||||
this.speedOfferService.saveSpeedOffer(speedOffer);
|
this.speedOfferService.saveSpeedOffer(speedOffer);
|
||||||
} else {
|
} else {
|
||||||
modelMap.addAttribute("message", "You don't have access to this speed offer");
|
modelMap.addAttribute("message", "You don't have access to this speed offer");
|
||||||
|
|
Loading…
Reference in a new issue