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

Update use of CRM_Utils_System::setTitle() for legacycustomsearches #21375

Merged

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Sep 5, 2021

Overview

Follows on from some work that @eileenmcnaughton started in 2019. Forms should use $this->setTitle() instead of CRM_Utils_System::setTitle() because it allows you to use $this->getTitle() on a form to get the title of the form that the user will see.

Before

Calls to CRM_Utils_System::setTitle() via child functions that are identical to parent function.

After

Calls to $this->setTitle() calls parent function directly which sets the title in the same way as CRM_Core_Form even though we don't inherit from CRM_Core_Form here.

Technical Details

Comments

@civibot
Copy link

civibot bot commented Sep 5, 2021

(Standard links)

@eileenmcnaughton
Copy link
Contributor

Impressive score @mattwire

image

This all looks sensible

@eileenmcnaughton eileenmcnaughton merged commit 27d1058 into civicrm:master Sep 5, 2021
@colemanw
Copy link
Member

colemanw commented Sep 6, 2021

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants