Fix bug in updating settings for fields (#8703)

This commit is contained in:
Matteo Piovanelli 2023-06-30 08:51:09 +02:00 committed by GitHub
parent 05079efdd3
commit bdba35c704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ namespace TinyMce.Settings {
} }
public override IEnumerable<TemplateViewModel> PartFieldEditorUpdate(ContentPartFieldDefinitionBuilder builder, IUpdateModel updateModel) { 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; yield break;
var model = new ContentLinksSettings(); var model = new ContentLinksSettings();
@ -56,4 +56,4 @@ namespace TinyMce.Settings {
yield return DefinitionTemplate(model); yield return DefinitionTemplate(model);
} }
} }
} }