Skip to content

Commit

Permalink
Update. Remove global wildcard search check for drugId.
Browse files Browse the repository at this point in the history
  • Loading branch information
deeptirawat1510 committed Oct 19, 2023
1 parent d0d9a72 commit dc756b7
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ public PageableResult search(RequestContext context) {
if (department == null && hasPhysicalInventory == null) {
if (query != null) {

// Check if the global wildcard search is enabled
if (ModuleSettings.useWildcardItemSearch()) {
query = '%' + query + '%';
items =
iItemAttributeDataService.getItemsByAttributeTypeAndValue(
iItemAttributeTypeDataService.getById(1), query, context.getIncludeAll(), pagingInfo);
}

if (items == null || items.size() == 0) {
// Try searching by code
pagingInfo = PagingUtil.getPagingInfoFromContext(context);
Expand Down

0 comments on commit dc756b7

Please sign in to comment.