lukethacoder / fflib.dev

⚡ Unofficial and semi-opinionated fflib documentation - Apex Enterprise Patterns

Home Page:https://fflib.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feedback for “Selector Layer: Extra Queries”

dancojocari opened this issue · comments

There is a typo in the code.

Instead of

@TestVisible
private String getExtraQueries(Boolean removeFirstAnd) {
String extraQueries = setFilterIsActive();
return removeFirstAnd ? extraQueries.replaceFirst('AND', ' ') : extraQueries;
}

it should be

@TestVisible
private String getExtraQueries(Boolean removeFirstAnd) {
String extraQueries = getFilterIsActive();
return removeFirstAnd ? extraQueries.replaceFirst('AND', ' ') : extraQueries;
}

thanks for flagging this. fixed