Skip to content

Commit

Permalink
LDEV-4814 add searchResults to getApplicationSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Mar 13, 2024
1 parent d63c2b7 commit 930ee0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ public static Struct call(PageContext pc, boolean suppressFunctions, boolean onl
if (ac.getScopeCascading() != Config.SCOPE_SMALL) {
sct.setEL("searchImplicitScopes", ac.getScopeCascading() == Config.SCOPE_STANDARD);
}
sct.setEL("searchResults", Caster.toBoolean(acs.getAllowImplicidQueryCall()));

// adminMode
sct.setEL("singleContext", ConfigWebUtil.toAdminMode(((ConfigPro) pc.getConfig()).getAdminMode(), "single") == "single");
Expand Down
1 change: 1 addition & 0 deletions test/functions/getApplicationSettings.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" {
var as = getApplicationSettings(onlySupported=true);
expect( as ).toHaveKey("bufferoutput");
expect( as ).toHaveKey("suppresscontent");
expect( as ).toHaveKey("searchResults");
});
});
}
Expand Down

0 comments on commit 930ee0c

Please sign in to comment.