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

CRM-20718 CIVICRM-125 Use the "On behalf of" profile title... #10499

Merged
merged 2 commits into from
Jun 15, 2017

Conversation

agileware
Copy link
Contributor

@agileware agileware commented Jun 13, 2017

…t title on Contribution pages instead of hardcoded title "Organization Details"
@@ -893,7 +893,7 @@ public function buildComponentForm($id, $form) {
}
}

$form->assign('fieldSetTitle', ts('Organization Details'));
$form->assign('fieldSetTitle', CRM_Core_BAO_UFGroup::getTitle($form->_values['onbehalf_profile_id']));
Copy link
Contributor

@jitendrapurohit jitendrapurohit Jun 13, 2017

Choose a reason for hiding this comment

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

It seems that ts() on Organization Details was displaying the converted string for each language. This seems to be working fine with the intention of the issue. But the organization title will only be shown in English after this change. Any reason of not passing the title to ts() before assigning to $form ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jitendrapurohit sure, why not :) Updated PR.

@seamuslee001
Copy link
Contributor

Makes sense to me

@seamuslee001
Copy link
Contributor

@mlutfy Mathieu does this makes sense to you?

@agileware
Copy link
Contributor Author

@eileenmcnaughton are you able to review this small change?

@eileenmcnaughton
Copy link
Contributor

Makes sense & reviewed by @jitendrapurohit - merging.

Thanks all!

@eileenmcnaughton eileenmcnaughton merged commit 6e190b5 into civicrm:master Jun 15, 2017
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.

7 participants