-
-
Notifications
You must be signed in to change notification settings - Fork 174
Fix for COLDBOX-1348 #631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: releases/v7.x
Are you sure you want to change the base?
Fix for COLDBOX-1348 #631
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -605,19 +605,23 @@ component | |||||
| } | ||||||
| } | ||||||
|
|
||||||
| // Discover the layout location + helpers | ||||||
| var layoutLocations = discoverViewPaths( | ||||||
| view : cbox_currentLayout, | ||||||
| module : arguments.module, | ||||||
| explicitModule: cbox_explicitModule, | ||||||
| isLayout : true | ||||||
| ); | ||||||
|
|
||||||
| // If Layout is blank, then just delegate to the view | ||||||
| // No layout rendering. | ||||||
| if ( len( cbox_currentLayout ) eq 0 ) { | ||||||
| iData.renderedLayout = this.view(); | ||||||
| // Announce | ||||||
| if ( not arguments.prePostExempt ) { | ||||||
| announce( "postLayoutRender", iData ); | ||||||
|
||||||
| announce( "postLayoutRender", iData ); | |
| announce( "postLayoutRender", iData.append( { viewPath : "" } ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change fixes a regression around
event.noLayout()+ modulelayoutParentLookup, but there’s no accompanying regression test. The repo already has renderer specs (e.g.tests/specs/web/RendererTest.cfc), so it would be good to add a test that executes a module request withlayoutParentLookup=truethat callsevent.noLayout()and asserts rendering succeeds (and does not attempt layout discovery).