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

TermsPart.Record usage made before the delegate to avoid accessing a lifetime scope which is already disposed. #8766

Merged

Conversation

AndreaPiovanelli
Copy link
Contributor

In reference to issue #8765 , terms info is loaded outside of the delegate, to void accessing the LazyField Record later in the execution of the code, potentially throwing the ObjectDisposedException described in the issue.

@MatteoPiovanelli-Laser MatteoPiovanelli-Laser merged commit 2d7ce45 into OrchardCMS:1.10.x Mar 15, 2024
2 checks passed
@AndreaPiovanelli AndreaPiovanelli deleted the 8765_termspartloader branch June 7, 2024 10:45
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.

3 participants