From e6a3fe9a6ef305bdbbe4a8c09223ce5137e69b84 Mon Sep 17 00:00:00 2001 From: zapata Date: Mon, 17 Jun 2002 02:56:55 +0000 Subject: [PATCH] important bugfix: new article produced a form without values for the various lists (like article type, topic etc). This is fixed now. --- source/mircoders/servlet/ServletModuleContent.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/source/mircoders/servlet/ServletModuleContent.java b/source/mircoders/servlet/ServletModuleContent.java index 7f5cb124..a3b3cc2e 100755 --- a/source/mircoders/servlet/ServletModuleContent.java +++ b/source/mircoders/servlet/ServletModuleContent.java @@ -143,32 +143,34 @@ public class ServletModuleContent extends ServletModule EntityUsers user = _getUser(req); SimpleHash mergeData = new SimpleHash(); + SimpleHash extraInfo = new SimpleHash(); + mergeData.put("new", "1"); mergeData.put("is_published", "1"); String now = StringUtil.date2webdbDate(new GregorianCalendar()); mergeData.put("date", new SimpleScalar(now)); try { - mergeData.put("themenPopupData", themenModule.getTopicsAsSimpleList()); + extraInfo.put("themenPopupData", themenModule.getTopicsAsSimpleList()); } catch (ModuleException e) { theLog.printError("themenPopupData could not be fetched."); } try { - mergeData.put("articletypePopupData", DatabaseArticleType.getInstance().getPopupData()); + extraInfo.put("articletypePopupData", DatabaseArticleType.getInstance().getPopupData()); } catch (Exception e) { theLog.printError("articletype could not be fetched."); } try { - mergeData.put("languagePopupData", DatabaseLanguage.getInstance().getPopupData()); + extraInfo.put("languagePopupData", DatabaseLanguage.getInstance().getPopupData()); } catch (Exception e) { theLog.printError("language-popup could not be fetched."); } try { - mergeData.put("schwerpunktPopupData", schwerpunktModule.getSchwerpunktAsSimpleList()); + extraInfo.put("schwerpunktPopupData", schwerpunktModule.getSchwerpunktAsSimpleList()); } catch (ModuleException e) { theLog.printError("schwerpunktPopupData could not be fetched."); } - mergeData.put("login_user", user); - deliver(req, res, mergeData, templateObjektString); + extraInfo.put("login_user", user); + deliver(req, res, mergeData, extraInfo, templateObjektString); } -- 2.11.0