Skip to content

Commit

Permalink
Fixes on double settings on patches
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Jun 23, 2016
1 parent 663d283 commit 1b69302
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/patches/3.0.0/Update.cfc
Expand Up @@ -217,8 +217,11 @@ component {
// Update Theme to layout
var oldLayoutSetting = settingService.findWhere( { name="cb_site_layout" } );
if( !isNull( oldLayoutSetting ) ){
oldLayoutSetting.setName( "cb_site_theme" );
settingService.save( entity=oldLayoutSetting );
var oSiteTheme = settingService.findWhere( { name="cb_site_theme" } );
if( isNull( oSiteTheme ) ){
oldLayoutSetting.setName( "cb_site_theme" );
settingService.save( entity=oldLayoutSetting );
}
}
// Update Search setting
var oSearchSetting = settingService.findWhere( { name="cb_search_adapter" } );
Expand Down

0 comments on commit 1b69302

Please sign in to comment.