Skip to content

Conversation

@shahrukh-compuco
Copy link
Contributor

Overview

This PR fixes a bug that restricted the user from correctly saving any message template

Before

MessageTemplate_Error.mp4

After

screen_recording_after

Technical Details

The issue was introduced due to civicrm upgrade as with this PR some form class properties become protected which previously were public. In this extension we were using one of those properties in a hook and it was resulting in an error.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a bug preventing message template saving by updating property access to use getter methods instead of direct property access, following CiviCRM core changes that made form properties protected.

  • Updated property access from $this->form->_id to $this->form->getVar('_id') in three locations
  • Adapted to CiviCRM core API changes that restricted direct access to form class properties

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

@shahrukh-compuco
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shahrukh-compuco shahrukh-compuco merged commit ea7e56a into master Nov 28, 2025
2 checks passed
@shahrukh-compuco shahrukh-compuco deleted the comcl-1268-fix-template-updation branch November 28, 2025 17:22
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.

3 participants