We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf34fa1 commit 8b03b8bCopy full SHA for 8b03b8b
modules/contentbox/models/content/RelocationService.cfc
@@ -89,9 +89,10 @@ component extends="cborm.models.VirtualEntityService" singleton {
89
* @originalSlug the slug which will be relocated
90
*/
91
Relocation function createContentRelocation( required BaseContent contentItem, required string originalSlug ){
92
- var site = arguments.contentItem.getSite();
+ var siteId = arguments.contentItem.getSite().getSiteID();
93
var relocation = newCriteria()
94
- .isEq( "site", site )
+ .createAlias( "site", "site" )
95
+ .isEq( "site.siteID", siteId )
96
.isEq( "slug", arguments.originalSlug )
97
.get();
98
if ( isNull( relocation ) ) {
0 commit comments