mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19243: Ignoring elements with empty identities during import
Work Item: 19243 --HG-- branch : 1.x
This commit is contained in:
@@ -631,6 +631,11 @@ namespace Orchard.ContentManagement {
|
||||
}
|
||||
|
||||
var identity = elementId.Value;
|
||||
|
||||
if (String.IsNullOrWhiteSpace(identity)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var status = element.Attribute("Status");
|
||||
|
||||
var item = importContentSession.Get(identity, VersionOptions.Latest, XmlConvert.DecodeName(element.Name.LocalName));
|
||||
|
Reference in New Issue
Block a user