Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Fixed issue where the VirtualOwner would be set for every element on a page #54

Merged
merged 1 commit into from
Jun 1, 2023
Merged

BUGFIX: Fixed issue where the VirtualOwner would be set for every element on a page #54

merged 1 commit into from
Jun 1, 2023

Conversation

UndefinedOffset
Copy link
Contributor

This pull request fixes an issue where the last virtual element on a page would cause all other elements on the page to have their VirtualOwner set to the last virtual element on the page. This is caused by extensions being singletons in Silverstripe 4. This pull request changes the DNADesign\ElementalVirtual\Extensions\BaseElementExtension class to use $this->owner->setField() and $this->owner->getField() to store the virtual owner rather than storing it as a protected variable on the extension.

@wilr wilr merged commit 760d5d9 into dnadesign:main Jun 1, 2023
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