From b8555e1c2e6ab0dabd8a72c12923ec0be465e654 Mon Sep 17 00:00:00 2001 From: Serhii Nosko Date: Tue, 28 Nov 2023 14:27:26 +0200 Subject: [PATCH] MODORDERS-962. Update Get titles query to check acq units from title instead of purchase order (#799) * MODORDERS-962. Update Get titles query to check acq units from title instead of purchase order --- src/main/java/org/folio/service/titles/TitlesService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/folio/service/titles/TitlesService.java b/src/main/java/org/folio/service/titles/TitlesService.java index 52b7f3be5..97f32c40f 100644 --- a/src/main/java/org/folio/service/titles/TitlesService.java +++ b/src/main/java/org/folio/service/titles/TitlesService.java @@ -13,6 +13,7 @@ import java.util.Map; import java.util.function.Function; +import org.apache.commons.lang3.StringUtils; import org.folio.orders.utils.HelperUtils; import org.folio.rest.core.RestClient; import org.folio.rest.core.models.RequestContext; @@ -52,7 +53,7 @@ public Future createTitle(Title title, RequestContext requestContext) { } public Future<TitleCollection> getTitles(int limit, int offset, String query, RequestContext requestContext) { - return acquisitionsUnitsService.buildAcqUnitsCqlExprToSearchRecords("purchaseOrder.", requestContext) + return acquisitionsUnitsService.buildAcqUnitsCqlExprToSearchRecords(StringUtils.EMPTY, requestContext) .compose(acqUnitsCqlExpr -> { String resultQuery = acqUnitsCqlExpr; if (!isEmpty(query)) {