Skip to content

Commit

Permalink
Merge branch '6.1' of https://github.com/lucee/Lucee into 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Apr 21, 2024
2 parents c19fbd5 + 4e10a8c commit 1dac82e
Show file tree
Hide file tree
Showing 3 changed files with 6 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
4 changes: 4 additions & 0 deletions test/tickets/LDEV2772.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{

try {
application action="update" searchResults=false;
var as = getApplicationSettings();
expect( as.searchResults ).toBeFalse();
loop query="q" {
expect( isNull(a) ).toBeTrue();
expect( q.a ).toBe( 'query' );
Expand All @@ -47,6 +49,8 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
}

application action="update" searchQueries=true;
var as = getApplicationSettings();
expect( as.searchResults ).toBeTrue();
loop query="q" {
expect( isNull( a ) ).toBeFalse();
expect( q.a ).toBe( 'query' );
Expand Down

0 comments on commit 1dac82e

Please sign in to comment.