whoops, article saving didn't work anymore
authorzapata <zapata>
Sat, 24 May 2003 15:56:38 +0000 (15:56 +0000)
committerzapata <zapata>
Sat, 24 May 2003 15:56:38 +0000 (15:56 +0000)
source/mircoders/servlet/ServletModuleContent.java

index 2730972..f62ce11 100755 (executable)
@@ -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"));