mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
Update FoodOfferController.java
This commit is contained in:
parent
f9452671bb
commit
f2324efb9f
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ public class FoodOfferController {
|
|||
Client client = this.clientService.getCurrentclient();
|
||||
if(foodOffer.getClient().equals(client)) {
|
||||
foodOffer.setType(StatusOffer.active);
|
||||
foodOffer.setCode("FE-"+foodOfferId);
|
||||
foodOffer.setCode("FO-"+foodOfferId);
|
||||
this.foodOfferService.saveFoodOffer(foodOffer);
|
||||
} else {
|
||||
modelMap.addAttribute("message", "You don't have access to this food offer");
|
||||
|
|
Loading…
Reference in a new issue