Fixes: U4-6733 Adding dictionary item (7.3): No parent dictionary item was found with id 41c7638d-f529-4bff-853e-59a0c2fb1bde

This commit is contained in:
Shannon
2015-07-02 14:52:01 +02:00
parent 32e21b0314
commit f0742c9d7c

View File

@@ -325,7 +325,9 @@ namespace umbraco.cms.businesslogic
if (!hasKey(key))
{
var item = ApplicationContext.Current.Services.LocalizationService.CreateDictionaryItemWithIdentity(
key, parentId, defaultValue);
key,
parentId == TopLevelParent ? (Guid?)null : parentId,
defaultValue);
return item.Id;
}