Skip to content

Fix: Properties are displayed incorrectly in Sequence diagrams (leakage between elements)#414

Merged
kirchsth merged 1 commit intoplantuml-stdlib:masterfrom
roman-pankov:413-fix-sequence-property-rel
Feb 8, 2026
Merged

Fix: Properties are displayed incorrectly in Sequence diagrams (leakage between elements)#414
kirchsth merged 1 commit intoplantuml-stdlib:masterfrom
roman-pankov:413-fix-sequence-property-rel

Conversation

@roman-pankov
Copy link
Copy Markdown
Contributor

Fixes #413

Properties in Sequence diagrams were leaking between elements because the props variable was not being cleared between participants.

Changes

  • Added !$props = $getProps() call at the beginning of the $getParticipant procedure
  • This ensures each participant starts with a clean property state, preventing property leakage into subsequent relationships

Issue 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.

…ge between elements)

- Clear properties at the beginning of $getParticipant function to prevent property leakage between sequence diagram elements
- Fixes issue plantuml-stdlib#413
Copy link
Copy Markdown
Member

@kirchsth kirchsth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @roman-pankov

thank you for the finding and the fast fix.

Related to properties in sequence diagrams itself:

  1. 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?
  2. What do you think, should I enable properties optional for participants/elements and relations too?

BR Helmut

@kirchsth kirchsth merged commit ef4d84f into plantuml-stdlib:master Feb 8, 2026
1 check passed
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.

Properties are displayed incorrectly in Sequence diagrams (leakage between elements)

2 participants