Skip to content

Conversation

trickpatty
Copy link

When updating DisplayName or Description (the only two localizedTraitTable-backed properties), changes were not persisting. It looks like there was a bug in the UpdateConstantValue method which caused the original value to be written back onto the property instead of the new value.

This change fixes the behavior to act as intended (and as described in the comments which were already on the method).

This change also provides a test which covers this scenario and checks that these two properties update correctly when set through the SDK.

Scott Kearney added 2 commits August 7, 2024 19:52
…es actually works.

This test fails without the fix in place. Once the fix is applied, it passes. Checks by attempting to update the Description and DisplayName properties, which should create the appropriate traits automatically.
…able.

As referenced in the comment, the attReturn positioned value should be set to the newValue which was passed in. Instead, it was just re-writing the existing value. This change fixes that glitch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant