Skip to content

Commit 2edcfa3

Browse files
committed
* If the incoming layout arugment for the setView() method in the mail is empty, it should ignore it.
1 parent b679432 commit 2edcfa3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
----
99

10+
11+
## [v2.7.0] =>
12+
13+
### Fixed
14+
15+
* If the incoming `layout` arugment for the `setView()` method in the mail is empty, it should ignore it.
16+
17+
----
18+
1019
## [v2.6.1] => 2022-NOV-21
1120

1221
### Changed

models/Mail.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ component accessors="true" {
456456
variables.config.type = "html";
457457

458458
// Do we have a layout?
459-
if ( !isNull( arguments.layout ) ) {
459+
if ( !isNull( arguments.layout ) && len( arguments.layout ) ) {
460460
variables.config.body = variables.wirebox
461461
.getInstance( "Renderer@coldbox" )
462462
.layout(

0 commit comments

Comments
 (0)