Skip to content

Commit

Permalink
fixup! ContentManager : Allow cloning content in a special context
Browse files Browse the repository at this point in the history
  • Loading branch information
TFleury committed Mar 22, 2016
1 parent 4497416 commit 2a08914
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Orchard/ContentManagement/DefaultContentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,7 @@ public virtual void Create(ContentItem contentItem, VersionOptions options) {

public virtual ContentItem Clone(ContentItem contentItem) {
var cloneContentItem = New(contentItem.ContentType);
var context = new CloneContentContext(contentItem, cloneContentItem);
return Clone(contentItem, null);
return Clone(contentItem, new CloneContentContext(contentItem, cloneContentItem));
}

public virtual ContentItem Clone(ContentItem contentItem, CloneContentContext cloneContext) {
Expand Down

0 comments on commit 2a08914

Please sign in to comment.