Skip to content

Commit

Permalink
fix query that was causing ConcurrentModificationException
Browse files Browse the repository at this point in the history
  • Loading branch information
jclausen committed Sep 13, 2024
1 parent cf34fa1 commit 8b03b8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/contentbox/models/content/RelocationService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,10 @@ component extends="cborm.models.VirtualEntityService" singleton {
* @originalSlug the slug which will be relocated
*/
Relocation function createContentRelocation( required BaseContent contentItem, required string originalSlug ){
var site = arguments.contentItem.getSite();
var siteId = arguments.contentItem.getSite().getSiteID();
var relocation = newCriteria()
.isEq( "site", site )
.createAlias( "site", "site" )
.isEq( "site.siteID", siteId )
.isEq( "slug", arguments.originalSlug )
.get();
if ( isNull( relocation ) ) {
Expand Down

0 comments on commit 8b03b8b

Please sign in to comment.