Skip to content

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

Open
weilai-irl wants to merge 2 commits into
MOODLE_405_STABLEfrom
wip-131327-m405
Open

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

Conversation

@weilai-irl

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 16:40
@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 adjusts the OIDC application configuration save logic to avoid an “undefined property” warning when secretexpiryrecipients is not present in the submitted form data (e.g., when the related form element is not included).

Changes:

  • Only adds secretexpiryrecipients to the list of settings-to-save when the submitted form data actually contains that property, preventing $fromform->$config from triggering a notice.

💡 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