Skip to content

Commit

Permalink
Merge branch 'master' into MODORDERS-967
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiNosko authored Nov 29, 2023
2 parents d121b59 + b8555e1 commit 35ddad2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/org/folio/service/titles/TitlesService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -52,7 +53,7 @@ public Future<Title> 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)) {
Expand Down

0 comments on commit 35ddad2

Please sign in to comment.