Fehler #2400 FormprocessException, modul ccm-ldn-types-contact

git-svn-id: https://svn.libreccm.org/ccm/trunk@3222 8810af33-2d31-482b-a856-94f89814c4df
master
konermann 2015-02-18 14:08:38 +00:00
parent 6f4ebfe78f
commit 33a853a218
4 changed files with 10 additions and 3 deletions

View File

@ -34,3 +34,5 @@ london.contenttypes.ui.contact.search_contact_label=Search for Contact:
london.contenttypes.ui.contact.no_contacts_yet=This item does not have a contact. london.contenttypes.ui.contact.no_contacts_yet=This item does not have a contact.
london.contenttypes.ui.contact.add_contact=Add london.contenttypes.ui.contact.add_contact=Add
cms.contenttypes.ldn.contact.type_label=Contact cms.contenttypes.ldn.contact.type_label=Contact
london.contenttypes.ui.contact.cancelled=Cancelled.
london.contenttypes.ui.contact.contact_selection_required=Contact selection is required

View File

@ -34,3 +34,5 @@ london.contenttypes.ui.contact.search_contact_label=Nach Kontakt suchen:
london.contenttypes.ui.contact.no_contacts_yet=es ist kein Kontakt zugeordnet. london.contenttypes.ui.contact.no_contacts_yet=es ist kein Kontakt zugeordnet.
london.contenttypes.ui.contact.add_contact=Hinzuf\u00fcgen london.contenttypes.ui.contact.add_contact=Hinzuf\u00fcgen
cms.contenttypes.ldn.contact.type_label=Kontakt cms.contenttypes.ldn.contact.type_label=Kontakt
london.contenttypes.ui.contact.cancelled=Abgebrochen.
london.contenttypes.ui.contact.contact_selection_required=Es muss ein Kontakt ausgew\u00e4hlt werden.

View File

@ -34,3 +34,5 @@ london.contenttypes.ui.contact.search_contact_label=Search for Contact:
london.contenttypes.ui.contact.no_contacts_yet=This item does not have a contact. london.contenttypes.ui.contact.no_contacts_yet=This item does not have a contact.
london.contenttypes.ui.contact.add_contact=Add london.contenttypes.ui.contact.add_contact=Add
cms.contenttypes.ldn.contact.type_label=Contact cms.contenttypes.ldn.contact.type_label=Contact
london.contenttypes.ui.contact.cancelled=Cancelled.
london.contenttypes.ui.contact.contact_selection_required=Contact selection is required

View File

@ -15,7 +15,6 @@ import com.arsdigita.bebop.event.FormProcessListener;
import com.arsdigita.bebop.event.FormSectionEvent; import com.arsdigita.bebop.event.FormSectionEvent;
import com.arsdigita.bebop.event.FormSubmissionListener; import com.arsdigita.bebop.event.FormSubmissionListener;
import com.arsdigita.bebop.event.FormValidationListener; import com.arsdigita.bebop.event.FormValidationListener;
import com.arsdigita.bebop.util.GlobalizationUtil;
import com.arsdigita.cms.ContentItem; import com.arsdigita.cms.ContentItem;
import com.arsdigita.cms.ItemSelectionModel; import com.arsdigita.cms.ItemSelectionModel;
import com.arsdigita.cms.contenttypes.ldn.Contact; import com.arsdigita.cms.contenttypes.ldn.Contact;
@ -116,7 +115,8 @@ public class ContactToItemAddForm extends FormSection implements
public void validate(FormSectionEvent e) throws FormProcessException { public void validate(FormSectionEvent e) throws FormProcessException {
FormData data = e.getFormData(); FormData data = e.getFormData();
if (data.get(CONTACT_SEARCH) == null) { if (data.get(CONTACT_SEARCH) == null) {
throw new FormProcessException("Contact selection is required."); throw new FormProcessException(ContactGlobalizationUtil
.globalize("london.contenttypes.ui.contact.contact_selection_required."));
} }
} }
@ -131,7 +131,8 @@ public class ContactToItemAddForm extends FormSection implements
public void submitted(FormSectionEvent e) throws FormProcessException { public void submitted(FormSectionEvent e) throws FormProcessException {
if (m_saveCancelSection.getCancelButton().isSelected(e.getPageState())) { if (m_saveCancelSection.getCancelButton().isSelected(e.getPageState())) {
m_parent.reset(e.getPageState()); m_parent.reset(e.getPageState());
throw new FormProcessException("cancelled"); throw new FormProcessException(ContactGlobalizationUtil
.globalize("london.contenttypes.ui.contact.cancelled"));
} }
} }