Skip to content

Commit eb84431

Browse files
committed
Ensure TopicReferenceAttributeViewComponent honors current key
The `TopicReferenceAttributeViewComponent` previously had a hard-coded value of `TopicID`. While it is indeed indended primarily to support derived topics (i.e., `TopicID`), it is possible that other attributes may use it in the future if they have similar requirements (i.e., a topic reference that triggers a postback). As such, this maintains the existing functionality while potentially providing more flexibility in the future, if needed.
1 parent 222b332 commit eb84431

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • OnTopic.Editor.AspNetCore/Areas/Editor/Views/Editor/Components/TopicReference

OnTopic.Editor.AspNetCore/Areas/Editor/Views/Editor/Components/TopicReference/Default.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@{
44
var attributeDescriptor = new TokenizedTopicListAttributeTopicViewModel() {
5-
Key = "TopicID",
5+
Key = Model.AttributeDescriptor.Key,
66
ContentType = "TokenizedTopicListAttribute",
77
Description = Model.AttributeDescriptor.Description,
88
Title = Model.AttributeDescriptor.Title,

0 commit comments

Comments
 (0)