mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Fix bug in updating settings for fields (#8703)
This commit is contained in:
parent
05079efdd3
commit
bdba35c704
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user