Fix: Properties are displayed incorrectly in Sequence diagrams (leakage between elements)#414
Merged
kirchsth merged 1 commit intoplantuml-stdlib:masterfrom Feb 8, 2026
Conversation
…ge between elements) - Clear properties at the beginning of $getParticipant function to prevent property leakage between sequence diagram elements - Fixes issue plantuml-stdlib#413
kirchsth
approved these changes
Feb 8, 2026
Member
kirchsth
left a comment
There was a problem hiding this comment.
thank you for the finding and the fast fix.
Related to properties in sequence diagrams itself:
- What was your base intention? Did you expected properties for participants too or did you reuse an existing model description and want to avoid the properties for relations too?
- What do you think, should I enable properties optional for participants/elements and relations too?
BR Helmut
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #413
Properties in Sequence diagrams were leaking between elements because the props variable was not being cleared between participants.
Changes
!$props = $getProps()call at the beginning of the$getParticipantprocedureIssue Details
When defining Containers with Properties in Sequence diagrams, those Properties were leaking into subsequent relationships (Rel) and displaying there collectively. This was caused by the props variable not being reset between element definitions.