From 575e68c09ae05ee7f89157616eda920b59b60d30 Mon Sep 17 00:00:00 2001 From: zapata Date: Sat, 24 May 2003 15:56:38 +0000 Subject: [PATCH] whoops, article saving didn't work anymore --- source/mircoders/servlet/ServletModuleContent.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/mircoders/servlet/ServletModuleContent.java b/source/mircoders/servlet/ServletModuleContent.java index 27309723..f62ce11d 100755 --- a/source/mircoders/servlet/ServletModuleContent.java +++ b/source/mircoders/servlet/ServletModuleContent.java @@ -71,7 +71,7 @@ import freemarker.template.SimpleHash; * ServletModuleContent - * deliver html for the article admin form. * - * @version $Id: ServletModuleContent.java,v 1.52 2003/05/08 02:43:42 zapata Exp $ + * @version $Id: ServletModuleContent.java,v 1.52.2.1 2003/05/24 15:56:38 zapata Exp $ * @author rk, mir-coders * */ @@ -188,6 +188,10 @@ public class ServletModuleContent extends ServletModule if (!withValues.containsKey("is_html")) withValues.put("is_html","0"); + String webdbCreate = (String) withValues.get("webdb_create"); + if (webdbCreate==null || webdbCreate.trim().length()==0) + withValues.remove("webdb_create"); + String id = mainModule.add(withValues); List topics; @@ -326,6 +330,10 @@ public class ServletModuleContent extends ServletModule if (!withValues.containsKey("is_html")) withValues.put("is_html","0"); + String webdbCreate = (String) withValues.get("webdb_create"); + if (webdbCreate==null || webdbCreate.trim().length()==0) + withValues.remove("webdb_create"); + String id = mainModule.set(withValues); DatabaseContentToTopics.getInstance().setTopics(aRequest.getParameter("id"), aRequest.getParameterValues("to_topic")); -- 2.11.0