Input-Field-Lookup icon indicating copy to clipboard operation
Input-Field-Lookup copied to clipboard

No filter issue

Open yacari opened this issue 4 years ago • 1 comments

Hello,

First, thanks a lot for the work ! I am just here to present an issue I fixed for your component : In the Apex controller line 57 your checking if the filter is null, in my case I did not set any filter in the component and it was considering the filter as an empty string, so not null. Leading to a wrong query with AND () inside. I just change the check by : if (Filter != '')

Thanks for this component ;)

yacari avatar Dec 17 '20 15:12 yacari

@yacari I appreciate you calling this out. I didn't have a filter either and ran into search errors. I used the below for my quick fix:

if (String.isNotBlank(Filter) || String.isNotEmpty(Filter)) {
        sQuery += ' AND (' + Filter + ')';
}

christiancoleman avatar Mar 07 '23 20:03 christiancoleman