From: Pradeep Nayak Date: Tue, 31 Mar 2015 20:32:31 +0000 (+0530) Subject: -- CRM-13793, removed cruft for website type id for profiles X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=890272fd84a70870128f5979dc269bb3bbae1ac9;p=civicrm-core.git -- CRM-13793, removed cruft for website type id for profiles ---------------------------------------- * CRM-13793: Miscellaneous code cleanups https://issues.civicrm.org/jira/browse/CRM-13793 --- diff --git a/templates/CRM/Profile/Form/Dynamic.tpl b/templates/CRM/Profile/Form/Dynamic.tpl index de015fd40d..6a04f5191c 100644 --- a/templates/CRM/Profile/Form/Dynamic.tpl +++ b/templates/CRM/Profile/Form/Dynamic.tpl @@ -150,9 +150,6 @@ {if $n|substr:0:3 eq 'im-'} {assign var="provider" value=$n|cat:"-provider_id"} {$form.$provider.html}  - {elseif $n|substr:0:4 eq 'url-'} - {assign var="websiteType" value=$n|cat:"-website_type_id"} - {$form.$websiteType.html}  {/if} {if $n eq 'email_greeting' or $n eq 'postal_greeting' or $n eq 'addressee'} {include file="CRM/Profile/Form/GreetingType.tpl"} diff --git a/templates/CRM/UF/Form/Block.tpl b/templates/CRM/UF/Form/Block.tpl index 1b6ea523d0..b18c2d5f33 100644 --- a/templates/CRM/UF/Form/Block.tpl +++ b/templates/CRM/UF/Form/Block.tpl @@ -114,9 +114,6 @@ {if $n|substr:0:3 eq 'im-'} {assign var="provider" value=$n|cat:"-provider_id"} {$form.$provider.html}  - {elseif $n|substr:0:4 eq 'url-'} - {assign var="websiteType" value=$n|cat:"-website_type_id"} - {$form.$websiteType.html}  {/if} {if $n eq 'email_greeting' or $n eq 'postal_greeting' or $n eq 'addressee'} diff --git a/templates/CRM/UF/Form/Preview.tpl b/templates/CRM/UF/Form/Preview.tpl index 1c14d31e02..c5816b1e54 100644 --- a/templates/CRM/UF/Form/Preview.tpl +++ b/templates/CRM/UF/Form/Preview.tpl @@ -118,10 +118,7 @@  {$form.$phone_ext_field.html} {/if} {else} - {if $n|substr:0:4 eq 'url-'} - {assign var="websiteType" value=$n|cat:"-website_type_id"} - {$form.$websiteType.html}  - {elseif $n|substr:0:3 eq 'im-'} + {if $n|substr:0:3 eq 'im-'} {assign var="provider" value=$n|cat:"-provider_id"} {$form.$provider.html}  {/if}