mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing import when two identifiers collide
--HG-- branch : 1.x
This commit is contained in:
@@ -50,6 +50,11 @@ namespace Orchard.ContentManagement {
|
||||
|
||||
var identity = _contentManager.GetItemMetadata(item).Identity;
|
||||
|
||||
// ignore content item if the same identity is already present
|
||||
if (_identities.ContainsKey(identity)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
_identities.Add(identity, item);
|
||||
_contentItemIds.Add(item.Id, identity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user