diff --git a/src/main/java/io/hardingadonis/saledock/controller/management/product/UpdateProductServlet.java b/src/main/java/io/hardingadonis/saledock/controller/management/product/UpdateProductServlet.java index cf954ea..f4a3121 100644 --- a/src/main/java/io/hardingadonis/saledock/controller/management/product/UpdateProductServlet.java +++ b/src/main/java/io/hardingadonis/saledock/controller/management/product/UpdateProductServlet.java @@ -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);