From 810bb9918a0c06c4f53971fd5be56754efe6c951 Mon Sep 17 00:00:00 2001 From: Eli Lisseck Date: Wed, 28 Nov 2018 15:38:11 -0800 Subject: [PATCH 1/2] dev/core/482 standardize contact edit form delete block behavior --- templates/CRM/Contact/Form/Edit/Website.tpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contact/Form/Edit/Website.tpl b/templates/CRM/Contact/Form/Edit/Website.tpl index e810a3d6fb9c..2a3b2e7f20d8 100644 --- a/templates/CRM/Contact/Form/Edit/Website.tpl +++ b/templates/CRM/Contact/Form/Edit/Website.tpl @@ -41,7 +41,9 @@ {$form.website.$blockId.url.html|crmAddClass:url}  {$form.website.$blockId.website_type_id.html} - {ts}delete{/ts} + {if $blockId gt 1} + {ts}delete{/ts} + {/if} {if !$addBlock} @@ -50,4 +52,3 @@ {/if} - From f336ee25f01356b8d2b5acf6c9ef461e5e38e6da Mon Sep 17 00:00:00 2001 From: Eli Lisseck Date: Wed, 28 Nov 2018 17:04:59 -0800 Subject: [PATCH 2/2] dev/core/482 resolve issue for inline template as well --- templates/CRM/Contact/Form/Inline/Website.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Contact/Form/Inline/Website.tpl b/templates/CRM/Contact/Form/Inline/Website.tpl index 8057d46ddde4..ccd6e4aa043f 100644 --- a/templates/CRM/Contact/Form/Inline/Website.tpl +++ b/templates/CRM/Contact/Form/Inline/Website.tpl @@ -50,7 +50,9 @@ {$form.website.$blockId.url.html|crmAddClass:url}  {$form.website.$blockId.website_type_id.html} - + {if $blockId gt 1} + + {/if} {/section}