mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 20:16:15 +08:00
Using Invoke helper in Clone() (#7400)
This commit is contained in:
committed by
Sébastien Ros
parent
69eb505e2a
commit
fb7ba4d392
@@ -91,19 +91,13 @@ namespace Orchard.Localization.Drivers {
|
||||
private IEnumerable<LocalizationPart> GetDisplayLocalizations(LocalizationPart part, VersionOptions versionOptions) {
|
||||
return _localizationService.GetLocalizations(part.ContentItem, versionOptions)
|
||||
.Where(c => c.Culture != null)
|
||||
.Select(c => {
|
||||
var localized = c.ContentItem.As<LocalizationPart>();
|
||||
return c;
|
||||
}).ToList();
|
||||
.ToList();
|
||||
}
|
||||
|
||||
private IEnumerable<LocalizationPart> GetEditorLocalizations(LocalizationPart part) {
|
||||
return _localizationService.GetLocalizations(part.ContentItem, VersionOptions.Latest)
|
||||
.Where(c => c.Culture != null)
|
||||
.Select(c => {
|
||||
var localized = c.ContentItem.As<LocalizationPart>();
|
||||
return c;
|
||||
}).ToList();
|
||||
.ToList();
|
||||
}
|
||||
|
||||
protected override void Importing(LocalizationPart part, ImportContentContext context) {
|
||||
|
||||
Reference in New Issue
Block a user