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

Set title using standard form method and use for success message on contributionpage #14615

Merged
merged 1 commit into from
Jul 9, 2019

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Jun 23, 2019

Overview

Switch to using standard form method for assigning title so we have access to the title during postprocess.

Before

Title not set on form object during postprocess.

After

Title set on form object during postprocess and used in the "Saved" message

Technical Details

Switch from CRM_Utils_System::setTitle() to $this->setTitle(). Assign the title to the form in CRM_Core_Form::setTitle() method as we've done with other extractions.

Comments

@civibot
Copy link

civibot bot commented Jun 23, 2019

(Standard links)

@civibot civibot bot added the master label Jun 23, 2019
@mattwire mattwire force-pushed the contributionpage_title branch from edd24b5 to 1ca02e8 Compare July 4, 2019 13:54
@mattwire mattwire changed the title WAITING #14614 Set title using standard form method and use for success message on contributionpage Set title using standard form method and use for success message on contributionpage Jul 4, 2019
@mattwire
Copy link
Contributor Author

mattwire commented Jul 9, 2019

@alifrumin This is the same change as #14614 but for contribution pages. Do you have time to take a quick look?

@alifrumin
Copy link
Contributor

Hey @mattwire I tested this on the jenkins build, specifically I created a new contribution page and checked that the title of the page shows up properly ("Configure Page - t1" in screenshot below). This looks ready to be merged to me.

t1

@mattwire
Copy link
Contributor Author

mattwire commented Jul 9, 2019

Thankyou @alifrumin

@mattwire
Copy link
Contributor Author

mattwire commented Jul 9, 2019

@eileenmcnaughton can you merge?

@eileenmcnaughton
Copy link
Contributor

This is a sensible code approach & @alifrumin has r-run it - merging

@eileenmcnaughton eileenmcnaughton merged commit abac0f7 into civicrm:master Jul 9, 2019
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