Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.7
-
Fix Version/s: 4.7.9
-
Component/s: None
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
I've only tested events. Other entities might be affected. The customDataSubType doesn't seem to be set correctly. This is my current template level fix, but this is just a bandaid. I suspect I can fix this at the php level and just set the variable correctly.
diff --git a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl index 017c8df..02b9048 100644 --- a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl +++ b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl @@ -24,7 +24,6 @@ +--------------------------------------------------------------------+ *} {* Step 1 of New Event Wizard, and Edit Event Info form. *} - <div class="crm-block crm-form-block crm-event-manage-eventinfo-form-block"> {assign var=eventID value=$id} <div class="crm-submit-buttons"> @@ -149,6 +148,7 @@ <div id="customData"></div> {*include custom data js file*} {include file="CRM/common/customData.tpl"} + {if ! empty($form.event_type_id.value.0) } + {assign var=customDataSubType value=$form.event_type_id.value.0} + {/if} {literal} <script type="text/javascript"> CRM.$(function($) {