Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Petrovich-A committed Jul 4, 2023
1 parent 0006e0d commit fa48c8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public User initializeUserSessionObject() {


@PostMapping("/add/{productId}")
public ModelAndView addProductToCart(@PathVariable("productId") String productId,
@Valid @ModelAttribute("cartDto") CartDto cartDto) {
public ModelAndView addProductToCart(@PathVariable String productId,
@Valid @ModelAttribute CartDto cartDto) {
ModelMap modelParams = new ModelMap();
if (productId != null) {
Integer id = Integer.parseInt(productId);
Expand Down

0 comments on commit fa48c8b

Please sign in to comment.