From: zapata Date: Sat, 24 May 2003 15:56:38 +0000 (+0000) Subject: whoops, article saving didn't work anymore X-Git-Tag: LATEST_MERGED_1_1~394 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=575e68c09ae05ee7f89157616eda920b59b60d30;hp=1aa9edcc67faeea38c5e2f2003c84ec1566d4fc5;p=mir.git whoops, article saving didn't work anymore --- 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"));