Skip to content

Commit

Permalink
[CST-12020] updated context retrieval process
Browse files Browse the repository at this point in the history
  • Loading branch information
corrado lombardi committed Oct 2, 2023
1 parent 606da4d commit 9731363
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,8 @@ private List<Choice> 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();
Expand Down

0 comments on commit 9731363

Please sign in to comment.