Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
fix ghi chu
Browse files Browse the repository at this point in the history
  • Loading branch information
thson58 committed Mar 7, 2024
1 parent 47e3dd8 commit 445b3f3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
product.setDescription(productDescription);
}

if (productDescription.trim().length() > 0) {
product.setDescription(productDescription);

}

Singleton.productDAO.save(product);

response.sendRedirect("./product-detail?id=" + idP);
Expand Down

0 comments on commit 445b3f3

Please sign in to comment.