From a5f51c51e9d6273235a23d898f5a28e9305840c5 Mon Sep 17 00:00:00 2001 From: mb863 Date: Wed, 14 Jul 2010 13:58:29 +0000 Subject: [PATCH] NIHVIVO-364: Improved error message when an administrator doesn't provide a contact email address --- .../webapp/controller/freemarker/ContactFormController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/ContactFormController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/ContactFormController.java index eb3ba9bfb..f6733d69d 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/ContactFormController.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/ContactFormController.java @@ -49,7 +49,8 @@ public class ContactFormController extends FreeMarkerHttpServlet { else if (StringUtils.isEmpty(portal.getContactMail())) { body.put("errorMessage", - "The site administrator has not configured an email address to receive the form submission."); + "The feedback form is currently disabled. In order to activate the form, a site administrator must provide a contact email address in the Site Configuration"); + bodyTemplate = "contactForm-error.ftl"; }