Skip to content

Fix undefined property warning when secretexpiryrecipients is absent from the application form#3217

Open
weilai-irl wants to merge 2 commits into
MOODLE_500_STABLEfrom
wip-131327-m500
Open

Fix undefined property warning when secretexpiryrecipients is absent from the application form#3217
weilai-irl wants to merge 2 commits into
MOODLE_500_STABLEfrom
wip-131327-m500

Conversation

@weilai-irl

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 16:41
@weilai-irl weilai-irl self-assigned this Jun 4, 2026
@weilai-irl weilai-irl added this to the 2026-03 milestone Jun 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request prevents a PHP “undefined property” warning on the OIDC application management page when the secretexpiryrecipients form field is not present (e.g., when the Local O365 plugin isn’t installed and the form element is not added).

Changes:

  • Only persists secretexpiryrecipients when the submitted form data actually contains that field, avoiding $fromform->$config access on a missing property.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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