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

FIX Allow __call() to trigger __call() in other classes #11487

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Dec 2, 2024

Fixes https://github.com/silverstripe/silverstripe-elemental/actions/runs/12128337221/job/33818161207 and many of the failures in https://github.com/silverstripe/silverstripe-cms/actions/runs/12128338043/
Basically VirtualPage couldn't be viewed at all, so that's easy to test.

If a class wraps another class, it may rely on calling methods in that other class. If that throws BadMethodCallException we should swallow that in ViewLayerData because it's the same as the method not existing on the object we're directly calling it on.

Issue

If a class wraps another class, it may rely on calling methods in that
other class. If that throws BadMethodCallException we should swallow
that in ViewLayerData because it's the same as the method not existing
on the object we're directly calling it on.
@GuySartorelli
Copy link
Member Author

GuySartorelli commented Dec 2, 2024

The inmemorycache CI failure is unrelated to this PR
The "SilverStripe\Forms\Tests\FormFieldTest::testFieldValidatorConfig" failure is also unrelated to this PR and will be resolved in #11488

@emteknetnz emteknetnz merged commit 896deb4 into silverstripe:6 Dec 3, 2024
9 of 13 checks passed
@emteknetnz emteknetnz deleted the pulls/6/virtualpage-fix branch December 3, 2024 00:36
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