From bdba35c704bd07b431fae901f0376856c9a743c2 Mon Sep 17 00:00:00 2001 From: Matteo Piovanelli Date: Fri, 30 Jun 2023 08:51:09 +0200 Subject: [PATCH] Fix bug in updating settings for fields (#8703) --- src/Orchard.Web/Modules/TinyMce/Settings/EditorEvents.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Orchard.Web/Modules/TinyMce/Settings/EditorEvents.cs b/src/Orchard.Web/Modules/TinyMce/Settings/EditorEvents.cs index f27f69727..dc9e78947 100644 --- a/src/Orchard.Web/Modules/TinyMce/Settings/EditorEvents.cs +++ b/src/Orchard.Web/Modules/TinyMce/Settings/EditorEvents.cs @@ -29,7 +29,7 @@ namespace TinyMce.Settings { } public override IEnumerable 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); } } -} \ No newline at end of file +}