Skip to content

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

Open
weilai-irl wants to merge 2 commits into
MOODLE_502_STABLEfrom
wip-131327-m502
Open

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

Conversation

@weilai-irl

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 16:42
@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 PR adjusts the OIDC application settings save logic to avoid PHP “undefined property” warnings when the secretexpiryrecipients field is not present on the submitted form (notably when the field is omitted entirely, e.g., when local O365 integration is not installed).

Changes:

  • Only include secretexpiryrecipients in $configstosave when it exists on the submitted form data for the secret-based auth method.

💡 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