Skip to content

Commit 244e9b5

Browse files
committed
CONTENTBOX-1507 #resolve
BulkSave not accounting for sites when filtering and saving
1 parent e46207a commit 244e9b5

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
### Bugs
1717

18+
- [CONTENTBOX-1507](https://ortussolutions.atlassian.net/browse/CONTENTBOX-1507) BulkSave not accounting for sites when filtering and saving
1819
- [CONTENTBOX-1506](https://ortussolutions.atlassian.net/browse/CONTENTBOX-1506) Updated all server.jsons to use \`env\` for the ortus orm extension since the latest lucee build broken extensions via jvm args
1920
- [CONTENTBOX-1505](https://ortussolutions.atlassian.net/browse/CONTENTBOX-1505) RenderView widget exception when using \`view\(\)\` to render the view
2021

config/Coldbox.cfc

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ component {
159159
function development(){
160160
coldbox.handlersIndexAutoReload = true;
161161
coldbox.handlerCaching = false;
162+
coldbox.debugMode = true;
162163
coldbox.reinitpassword = "";
163164
coldbox.customErrorTemplate = "/coldbox/system/exceptions/Whoops.cfm";
164165

modules/contentbox/models/system/SettingService.cfc

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ component
612612
} )
613613
// Build out array of settings to save
614614
.each( function( key, value ){
615-
var thisSetting = findWhere( { name : key } );
615+
var thisSetting = findWhere( { name : key, site : !isNull( arguments.site ) ? arguments.site : javaCast( "null", "" ) } );
616616

617617
// Maybe it's a new setting :)
618618
if ( isNull( thisSetting ) ) {

0 commit comments

Comments
 (0)