From d94b0cd54b54d5a343fdcb762ad444abbf640af2 Mon Sep 17 00:00:00 2001 From: konermann Date: Tue, 10 Feb 2015 18:59:28 +0000 Subject: [PATCH] Fehler #2400 FormprocessException, modul ccm-forum,ccm-themedirector git-svn-id: https://svn.libreccm.org/ccm/trunk@3133 8810af33-2d31-482b-a856-94f89814c4df --- .../src/com/arsdigita/forum/ui/AttachedFilesStep.java | 3 +-- ccm-forum/src/com/arsdigita/forum/ui/ImagesStep.java | 7 ++----- .../themedirector/ui/listeners/CancelListener.java | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ccm-forum/src/com/arsdigita/forum/ui/AttachedFilesStep.java b/ccm-forum/src/com/arsdigita/forum/ui/AttachedFilesStep.java index c7cb800fd..6643cbfff 100644 --- a/ccm-forum/src/com/arsdigita/forum/ui/AttachedFilesStep.java +++ b/ccm-forum/src/com/arsdigita/forum/ui/AttachedFilesStep.java @@ -208,8 +208,7 @@ public class AttachedFilesStep PageState state = e.getPageState(); if (!m_addFile.isSelected(state) && StringUtils.isNotBlank((String) m_upload.getValue(state))) { - throw new FormProcessException( - (String) GlobalizationUtil.gzAsStr( + throw new FormProcessException(GlobalizationUtil.gz( "forum.ui.validation.file_not_uploaded")); } diff --git a/ccm-forum/src/com/arsdigita/forum/ui/ImagesStep.java b/ccm-forum/src/com/arsdigita/forum/ui/ImagesStep.java index dee96c42b..3682a3053 100644 --- a/ccm-forum/src/com/arsdigita/forum/ui/ImagesStep.java +++ b/ccm-forum/src/com/arsdigita/forum/ui/ImagesStep.java @@ -218,12 +218,9 @@ public class ImagesStep PageState state = e.getPageState(); if (!m_addImage.isSelected(state) && StringUtils.isNotBlank((String) m_upload.getValue(state))) { - throw new FormProcessException( - (String) GlobalizationUtil - .gz("forum.ui.validation.image_not_uploaded") - .localize()); + throw new FormProcessException( GlobalizationUtil + .gz("forum.ui.validation.image_not_uploaded")); } - } /** diff --git a/ccm-themedirector/src/com/arsdigita/themedirector/ui/listeners/CancelListener.java b/ccm-themedirector/src/com/arsdigita/themedirector/ui/listeners/CancelListener.java index 7b673bda8..1479d4d83 100755 --- a/ccm-themedirector/src/com/arsdigita/themedirector/ui/listeners/CancelListener.java +++ b/ccm-themedirector/src/com/arsdigita/themedirector/ui/listeners/CancelListener.java @@ -44,7 +44,7 @@ public class CancelListener implements FormSubmissionListener { PageState state = event.getPageState(); if (m_form.isCancelled(state)) { m_modalPanel.pop(state); - throw new FormProcessException(GlobalizationUtil.globalize("cancelled")); + throw new FormProcessException(GlobalizationUtil.globalize("theme.cancelled")); } } }