From 302fe3ddf03a2229bf5257652b3b852612397666 Mon Sep 17 00:00:00 2001 From: tosmers Date: Sun, 15 Feb 2015 17:38:51 +0000 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20In=20der=20Klasse=20ccm-docmgr/src/c?= =?UTF-8?q?om/arsdigita/cms/docmgr/ui/authoring/DocumentPropertyForm.java?= =?UTF-8?q?=20die=20FormProcessException=20in=20der=20Zeile=20200=20umgeba?= =?UTF-8?q?ut=20und=20den=20key=20ui.authoring.file=5Foption=5Fnull=20denn?= =?UTF-8?q?=20Properties=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@3199 8810af33-2d31-482b-a856-94f89814c4df --- .../src/com/arsdigita/cms/docmgr/ui/DMResources.properties | 1 + .../src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties | 1 + .../cms/docmgr/ui/authoring/DocumentPropertyForm.java | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties index 255d7076c..9f4afc955 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties @@ -94,3 +94,4 @@ ui.error.sending_document=An error occurred while trying to send document ui.invalid_term=Invalid term ui.folder.deletion_while_not_empty=Folders must be empty before they can be deleted ui.error.unexpected=An unexpected error occurred +ui.authoring.file_option_null=File option was null diff --git a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties index 255d7076c..9f4afc955 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties @@ -94,3 +94,4 @@ ui.error.sending_document=An error occurred while trying to send document ui.invalid_term=Invalid term ui.folder.deletion_while_not_empty=Folders must be empty before they can be deleted ui.error.unexpected=An unexpected error occurred +ui.authoring.file_option_null=File option was null diff --git a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/authoring/DocumentPropertyForm.java b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/authoring/DocumentPropertyForm.java index d814edc10..c060ebb96 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/authoring/DocumentPropertyForm.java +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/authoring/DocumentPropertyForm.java @@ -23,6 +23,7 @@ import com.arsdigita.bebop.parameters.StringParameter; import com.arsdigita.cms.FileAsset; import com.arsdigita.cms.ItemSelectionModel; import com.arsdigita.cms.docmgr.Document; +import com.arsdigita.cms.docmgr.util.GlobalizationUtil; import com.arsdigita.cms.ui.authoring.BasicPageForm; import com.arsdigita.dispatcher.MultipartHttpServletRequest; @@ -196,7 +197,8 @@ class FileFormSection extends FormSection implements FormValidationListener { throw new FormProcessException(ex); } } else { - throw new FormProcessException("File Option was null"); + throw new FormProcessException(GlobalizationUtil.globalize( + "ui.authoring.file_option_null")); } } else if (fileOption != null && fileOption.equals(DELETE_OPTION)) { //