From 1df47314e1892949fa4087c506302480b75036b3 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Wed, 14 Apr 2010 20:33:41 +0000 Subject: [PATCH] Improved custom form behavior so after returning from a failed submission due to validation errors, we can return to the view we were on, without attempting to detect that from the organization input field data (since if all three fields are empty we cannot determine the previous view). --- .../vitro/webapp/edit/n3editing/PersonHasPositionValidator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/PersonHasPositionValidator.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/PersonHasPositionValidator.java index 10ede2228..d46aea326 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/PersonHasPositionValidator.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/PersonHasPositionValidator.java @@ -10,7 +10,7 @@ import com.hp.hpl.jena.rdf.model.Literal; public class PersonHasPositionValidator implements N3Validator { private static String DUPLICATE_ERROR = "Must choose an existing organization or create a new one, not both."; - private static String MISSING_ORG_ERROR = "Must either choose an existing organization or create a new one."; + private static String MISSING_ORG_ERROR = "Must specify an organization."; private static String MISSING_ORG_TYPE_ERROR = "Must select a type for the new organization."; private static String MISSING_ORG_NAME_ERROR = "Must select a name for the new organization.";