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

Add function to set entitySubType for entity forms #16017

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Dec 3, 2019

Overview

I originally added the functions and comments for this and it's only use on the case form. But the way I did it doesn't make sense to me! This makes it actually useful. Most forms actually load the custom data via javascript so never actually use the subtype at the form level - I'm doing some work on civibooking and converting that to entityform requires a specific activity type.

Before

Not possible to set the entity subtype on an entity form.

After

Entity subtype can be set in a standard way and is used if set.

Technical Details

Implement setEntitySubType() and check if getEntitySubType() method exists before using it.

Comments

@eileenmcnaughton As the resident entityform expert would you be able to take a look?

@seamuslee001
Copy link
Contributor

Jenkins test this please

@seamuslee001
Copy link
Contributor

@mattwire mattwire added the merge ready PR will be merged after a few days if there are no objections label Jan 18, 2020
@@ -179,7 +179,6 @@
{if $action eq 4}
{include file="CRM/Custom/Page/CustomDataView.tpl"}
{else}
<div id="customData"></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this being removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

OK - I can see it duplicated in the include file. I'm not wild about it being included with an unrelated change without notes but I think it makes sense.

@eileenmcnaughton
Copy link
Contributor

Tested & creating a case with custom data associated with a case type still works

@eileenmcnaughton eileenmcnaughton merged commit 1b50b30 into civicrm:master Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants