Skip to content

Commit b516f5a

Browse files
committed
OriginalKey should not accept derived values
This scenario should never occur, but this makes that scenario more explicit.
1 parent 05eb3e2 commit b516f5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Ignia.Topics/Topic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public string Key {
158158
set {
159159
TopicFactory.ValidateKey(value);
160160
if (_originalKey == null) {
161-
_originalKey = Attributes.GetValue("Key", false);
161+
_originalKey = Attributes.GetValue("Key", _key, false, false);
162162
}
163163
//If an established key value is changed, the parent's index must be manually updated; this won't happen automatically.
164164
if (_originalKey != null && !value.Equals(_key) && Parent != null) {

0 commit comments

Comments
 (0)