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

Contribution/ContributionRecur metadata updates for EntityForm #13579

Merged

Conversation

mattwire
Copy link
Contributor

Overview

Updates to ContributionRecur metadata so that we can use it to autogenerate forms.

Before

Less useable metadata

After

More useable metadata

Technical Details

Tweaks to labels, html elements so they can be used automatically on a form.

Comments

ping @eileenmcnaughton as I think you understand the reasons behind this best :-)

@civibot
Copy link

civibot bot commented Feb 12, 2019

(Standard links)

@civibot civibot bot added the master label Feb 12, 2019
@@ -369,7 +372,7 @@ public static function &fields() {
'start_date' => [
'name' => 'start_date',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Recurring Contribution Started Date'),
'title' => ts('Start Date'),
Copy link
Member

Choose a reason for hiding this comment

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

The reason for these ridiculously long names may have been to disambiguate fields on the import/export forms where they are all shown in a flat list.

@eileenmcnaughton
Copy link
Contributor

@mattwire the title changes do give me pause - TBH I've been ignoring the slight weirdness of leaving the long ones in place & just using the overly long ones on the forms.

I guess the places I can think of where it might be relevant to disambiguate are import, export & views - can you think of any others @colemanw ?

@eileenmcnaughton
Copy link
Contributor

I checked views & there seems to be hard-coded metadata.

import & export don't show these fields - I'm happy to merge

@eileenmcnaughton eileenmcnaughton merged commit 47ed16c into civicrm:master Feb 18, 2019
@mattwire mattwire deleted the contributionrecur_metadata branch March 1, 2019 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants