Skip to content

Commit 8b03b8b

Browse files
committed
fix query that was causing ConcurrentModificationException
1 parent cf34fa1 commit 8b03b8b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/contentbox/models/content/RelocationService.cfc

+3-2
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ component extends="cborm.models.VirtualEntityService" singleton {
8989
* @originalSlug the slug which will be relocated
9090
*/
9191
Relocation function createContentRelocation( required BaseContent contentItem, required string originalSlug ){
92-
var site = arguments.contentItem.getSite();
92+
var siteId = arguments.contentItem.getSite().getSiteID();
9393
var relocation = newCriteria()
94-
.isEq( "site", site )
94+
.createAlias( "site", "site" )
95+
.isEq( "site.siteID", siteId )
9596
.isEq( "slug", arguments.originalSlug )
9697
.get();
9798
if ( isNull( relocation ) ) {

0 commit comments

Comments
 (0)