-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#7412: Verified and added several Cloning overrides in many drivers #7592
base: dev
Are you sure you want to change the base?
#7412: Verified and added several Cloning overrides in many drivers #7592
Conversation
@@ -177,5 +177,11 @@ public class AutoroutePartDriver : ContentPartDriver<AutoroutePart> { | |||
context.Element(part.PartDefinition.Name).SetAttributeValue("UseCulturePattern", part.Record.UseCulturePattern); | |||
context.Element(part.PartDefinition.Name).SetAttributeValue("PromoteToHomePage", part.PromoteToHomePage); | |||
} | |||
|
|||
protected override void Cloning(AutoroutePart originalPart, AutoroutePart clonePart, CloneContentContext context) { | |||
clonePart.CustomPattern = originalPart.CustomPattern; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it the actual slug? If so it should be altered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. That would be the DisplayAlias property.
Looks good but we need someone to confirm it works. /cc summoning @BenedekFarkas |
I'll be happy to do testing on this and the related PRs, but won't be able to do so in the next few days. I'll add myself as a reviewer just in case, so it shows up for me on GitHub. |
…Cleanup # Conflicts: # src/Orchard.Web/Core/Contents/Views/Parts.Contents.Publish.SummaryAdmin.cshtml # src/Orchard.Web/Modules/Orchard.MediaLibrary/Drivers/AudioPartDriver.cs # src/Orchard.Web/Modules/Orchard.MediaLibrary/Drivers/DocumentPartDriver.cs # src/Orchard.Web/Modules/Orchard.MediaLibrary/Drivers/MediaPartDriver.cs # src/Orchard.Web/Modules/Orchard.MediaLibrary/Drivers/OEmbedPartDriver.cs
Fixes #7412
I am not sure all the overrides are correct even here.
I added the Cloning override in some of the drivers that did not have it as well.