Fix bug in updating settings for fields

This commit is contained in:
Matteo Piovanelli 2023-06-22 10:42:43 +02:00 committed by GitHub
parent bf0c71c4f0
commit 06a6af0672
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) {
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);
}
}
}
}