From d288cce062836f90d4828e88d7bbab17f600c304 Mon Sep 17 00:00:00 2001 From: Patrick Schmitz Date: Tue, 2 Nov 2010 00:03:25 +0000 Subject: [PATCH] NOJIRA - Partial fix for bugs that occur when displayName of authority term changes. If the change is only in case, the terms were found in the query, but not as we built the payload specifics. This lead to a blank page when viewing the authority term (because the services were returning a 500). If the change to a displayName is more substantive, the referencing objects will just not be found (see also CSPACE-1927). --- .../services/common/vocabulary/RefNameServiceUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java b/services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java index 8a691aad4..3fa013e37 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java +++ b/services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java @@ -260,14 +260,14 @@ public class RefNameServiceUtils { if (fieldValue instanceof List) { List fieldValueList = (List) fieldValue; for (String listItemValue : fieldValueList) { - if (refName.equals(listItemValue)) { + if (refName.equalsIgnoreCase(listItemValue)) { result = true; break; } } - } else { - if (refName.equals(fieldValue)) { + } else if (fieldValue instanceof String){ + if (refName.equalsIgnoreCase((String)fieldValue)) { result = true; } } -- 2.47.3