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-17789 - CRM_Custom_Form_Group - Simplify reltype list #9035

Merged
merged 2 commits into from
Sep 14, 2016

Conversation

totten
Copy link
Member

@totten totten commented Sep 14, 2016

So...  there's a helper function `getContactRelationshipType`
which provided a restricted listing of relationship-types (as they apply
to specific contact types or subtypes).

But what if you wanted the list of relationship-types, without filtering by
contact-type?  You *could* go through and query
eve.ry.sin.gle.contac.ttype.and.cont.act.subty.pe.  And then merge all of
these lists.  And then parse and remerge the strange intermediate format.

Or...  you just load the list you wanted...  directly...  in the format you
wanted...
@totten totten force-pushed the master-group-cleanup branch from a2e2fbe to a9c1ff4 Compare September 14, 2016 03:41
@totten
Copy link
Member Author

totten commented Sep 14, 2016

Score: -30 SLOC on the principal! (Alas, +18 on the simple/generic helper w/docs...)

@seamuslee001
Copy link
Contributor

tested this, works sensibly

@jitendrapurohit
Copy link
Contributor

jitendrapurohit commented Sep 14, 2016

Tested this using different relationship types(normal/multilingual setup) for subtypes, organisation, households, etc. All seems to be loading in the formatted display correctly. This is good to be merged from my side too.

Thanks!

@totten
Copy link
Member Author

totten commented Sep 14, 2016

jenkins, test this please

1 similar comment
@totten
Copy link
Member Author

totten commented Sep 14, 2016

jenkins, test this please

@totten
Copy link
Member Author

totten commented Sep 14, 2016

The reported failure CRM_Contribute_Form_ContributionTest.testSubmitCreditCardPayPal is pre-existing/not-relevant.

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.

4 participants