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

[Tracer][YII] Do not use module property if it doesn't exist #1999

Merged
merged 3 commits into from
Apr 3, 2023

Conversation

pierotibou
Copy link
Collaborator

@pierotibou pierotibou commented Apr 1, 2023

Description

When using modules in Yii, the controller doesn't have the same properties at hand. We used to try and access the module property which was failing in some cases and caused 500 in a user application.

We now check the existence of the property and fallback on another method that work for modules.

In terms of implementation, I've first confirmed I could reproduce by extending the tests, and then fixed the code.

Readiness checklist

  • (only for Members) Changelog has been added to the release document.
  • Tests added for this feature/bug.

Reviewer checklist

  • Appropriate labels assigned.
  • Milestone is set.
  • Changelog has been added to the release document. For community contributors the reviewer is in charge of this task.

@pierotibou pierotibou requested a review from a team as a code owner April 1, 2023 22:34
Copy link
Contributor

@PROFeNoM PROFeNoM left a comment

Choose a reason for hiding this comment

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

LGTM!

@pierotibou pierotibou merged commit 40dd69a into master Apr 3, 2023
@pierotibou pierotibou deleted the pierre/yii branch April 3, 2023 11:44
@pierotibou pierotibou added this to the 0.87.0 milestone Apr 3, 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.

None yet

2 participants