Skip to content

Commit

Permalink
Merge pull request #25121 from MegaphoneJon/no-drupalCms
Browse files Browse the repository at this point in the history
remove unused code in Profile template
  • Loading branch information
seamuslee001 authored Dec 6, 2022
2 parents cc78cb9 + 3c32c7d commit 591e7f7
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions templates/CRM/Profile/Form/Dynamic.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -220,32 +220,11 @@

</div> {* end crm-container div *}

<script type="text/javascript">
{if $drupalCms}
{literal}
if ( document.getElementsByName("cms_create_account")[0].checked ) {
cj('#details').show();
}
else {
cj('#details').hide();
}
{/literal}
{/if}
</script>
{/if} {* fields array is not empty *}
{if $multiRecordFieldListing and empty($fields)}
{include file="CRM/Profile/Page/MultipleRecordFieldsListing.tpl" showListing=true}
{/if}
{if $drupalCms}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id ="create_account"
trigger_value =""
target_element_id ="details"
target_element_type ="block"
field_type ="radio"
invert = 0
}
{elseif $statusMessage}
{if $statusMessage}
<div class="messages status no-popup">
{icon icon="fa-info-circle"}{/icon}
{$statusMessage}
Expand Down

0 comments on commit 591e7f7

Please sign in to comment.