OnTopicCMS/OnTopic-Editor-AspNetCore

Bug: `TokenizedTopicList` inheriting topic references

Closed this issue · 1 comments

By default, topic references are inherited from the BaseTopic. This should be disabled for TokenizedTopicList so that inherited values don’t get saved to derived topics on Save().

This was actually coming from the EditorController, where it populates the EditingTopicViewModel.Attributes collection, as that's where the TokenizedTopicListAttributeViewModel gets its Value property from. This is easily fixed by disabling the default inheritFromBase parameter on the Topic.References.GetValue() overload (51ba22f).