mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 12:03:16 +08:00
Fix bug in updating settings for fields (#8703)
This commit is contained in:
committed by
GitHub
parent
05079efdd3
commit
bdba35c704
@@ -29,7 +29,7 @@ namespace TinyMce.Settings {
|
||||
}
|
||||
|
||||
public override IEnumerable<TemplateViewModel> PartFieldEditorUpdate(ContentPartFieldDefinitionBuilder builder, IUpdateModel updateModel) {
|
||||
if (!_contentLinksDependenciesEnabled || !_htmlFields.Any(x => x.Equals(builder.Name, StringComparison.InvariantCultureIgnoreCase)))
|
||||
if (!_contentLinksDependenciesEnabled || !_htmlFields.Any(x => x.Equals(builder.FieldType, StringComparison.InvariantCultureIgnoreCase)))
|
||||
yield break;
|
||||
|
||||
var model = new ContentLinksSettings();
|
||||
@@ -56,4 +56,4 @@ namespace TinyMce.Settings {
|
||||
yield return DefinitionTemplate(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user