From 973136305b03c4d8359e9b0e080565ccb8a5c5ad Mon Sep 17 00:00:00 2001 From: corrado lombardi Date: Mon, 2 Oct 2023 16:46:10 +0200 Subject: [PATCH] [CST-12020] updated context retrieval process --- .../main/java/org/dspace/content/authority/ItemAuthority.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dspace-api/src/main/java/org/dspace/content/authority/ItemAuthority.java b/dspace-api/src/main/java/org/dspace/content/authority/ItemAuthority.java index 6ec39db9764f..0779a294aef2 100644 --- a/dspace-api/src/main/java/org/dspace/content/authority/ItemAuthority.java +++ b/dspace-api/src/main/java/org/dspace/content/authority/ItemAuthority.java @@ -181,9 +181,8 @@ private List getChoiceListFromQueryResults(SolrDocumentList results, Str public String getLabel(String key, String locale) { String title = key; if (key != null) { - Context context = null; + Context context = getContext(); try { - context = new Context(); DSpaceObject dso = itemService.find(context, UUIDUtils.fromString(key)); if (dso != null) { title = dso.getName();