In der Klasse com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java die FormProcessException in der Zeile 382 umgebaut. Entsprechenden Eintrag (requires_uri_field in der Property hinzugefügt.

git-svn-id: https://svn.libreccm.org/ccm/trunk@3153 8810af33-2d31-482b-a856-94f89814c4df
master
tosmers 2015-02-13 21:00:51 +00:00
parent 4cf690469d
commit fc21047844
5 changed files with 6 additions and 2 deletions

View File

@ -1095,3 +1095,4 @@ cms.ui.item_searchwidget.submit=item search FormSection submit
cms.ui.workflow.task.approval_or_reject_required=Approval or rejection is required.
cms.ui.type.cancelled=Cancelled
cms.contenttypes.ui.cancelled=Cancelled
cms.contenttypes.ui.requires_uri_field=The URI field is required for an external link

View File

@ -1089,3 +1089,4 @@ cms.ui.item_searchwidget.submit=item search FormSection submit
cms.ui.workflow.task.approval_or_reject_required=Ablehnung oder Zustimmung ist ben\u00f6tigt
cms.ui.type.cancelled=Abgebrochen
cms.contenttypes.ui.cancelled=Abgebrochen
cms.contenttypes.ui.requires_uri_field=Das URI-Feld wird f\u00fcr einen externen Link ben\u00f6tigt

View File

@ -133,3 +133,4 @@ cms.ui.workflow.task.approval_or_reject_required=Approval or rejection is requir
cms.ui.type.name_not_unique=Name not unique
cms.ui.type.cancelled=cancelled
cms.contenttypes.ui.cancelled=Cancelled
cms.contenttypes.ui.requires_uri_field=

View File

@ -605,3 +605,4 @@ cms.ui.role.name_not_unique=Il y a d\u00e9ja un r\u00f4le
cms.ui.type.invalid=Invalide
cms.ui.category.name_not_unique=Il y a d\u00e9ja une cat\u00e9gorie avec le nom
cms.contenttypes.ui.cancelled=Annul\u00e9
cms.contenttypes.ui.requires_uri_field=Le champ URI est n\u00e9cessaire pour un lien externe

View File

@ -379,8 +379,8 @@ public class LinkPropertyForm extends FormSection
// The link is external, the URL must be valid and not null
String externalURI = (String) m_targetURI.getValue(state);
if (externalURI == null || externalURI.length() == 0) {
throw new FormProcessException(
"The URI field is required for an external link.");
throw new FormProcessException(GlobalizationUtil.globalize(
"cms.contenttypes.ui.requires_uri_field"));
}
String url = (String) m_targetURI.getValue(state);