From ec12186084cf9b0d0c7f36f6176e0f0872eadf05 Mon Sep 17 00:00:00 2001 From: Nguyen Son <152074875+thson58@users.noreply.github.com> Date: Thu, 7 Mar 2024 14:15:55 +0700 Subject: [PATCH] =?UTF-8?q?fix=20mo=20t=E1=BA=A3=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/management/product/UpdateProductServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }