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 f4a3121..2b10647 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 @@ -103,7 +103,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response) } if (productDescription.trim().length() > 0) { - product.setDescription(productDescription); + product.setDescription(productDescription.trim()); }