Skip to content

fix wrong parent of a element where ref another element#86

Merged
lcduarte merged 1 commit into
xmlet:masterfrom
waldi5001:bugfix/element_ref_wrong_parent
Apr 25, 2026
Merged

fix wrong parent of a element where ref another element#86
lcduarte merged 1 commit into
xmlet:masterfrom
waldi5001:bugfix/element_ref_wrong_parent

Conversation

@waldi5001
Copy link
Copy Markdown
Contributor

if a ref element is used inside a sequence, the parent have to be a sequence and not schema.

Could you have a look and see if it’s OK that I’ve deleted that line? originalReference.getElement().setParentAvailable(false); I couldn’t find out why it was there.

if a ref element is used inside a sequence, the parent have to be a
sequence and not schema.
@lcduarte lcduarte merged commit 084052f into xmlet:master Apr 25, 2026
@lcduarte
Copy link
Copy Markdown
Member

The test you've added makes sense, and since the other tests remain functional I'll approve it. That method call was used to hide an issue related with cloning elements in the reference solving process, and since the other tests work without it it probably means that the issue was since fixed.

Thanks for the fix.

@waldi5001 waldi5001 deleted the bugfix/element_ref_wrong_parent branch April 28, 2026 19:55
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.

2 participants