Rolls back previous change (#7882)

#7877 introduced more issues than it solved. I propose rolling it back, and test this deeper.
This commit is contained in:
Matteo Piovanelli
2017-10-13 21:31:06 +02:00
committed by Sébastien Ros
parent d6fa50aaee
commit f146b81f47

View File

@@ -98,7 +98,7 @@ namespace Orchard.Taxonomies.Handlers {
protected override void UpdateEditorShape(UpdateEditorContext context) {
// case contentitem without localization and taxonomyfield localized
if (context.ContentItem.As<LocalizationPart>() == null) {
if (context.ContentItem.As<LocalizationPart>() != null) {
return;
}
var partFieldDefinitions = context.ContentItem.Parts.SelectMany(p => p.PartDefinition.Fields).Where(x => x.FieldDefinition.Name == "TaxonomyField");