X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FContact%2FForm%2FSearch%2FCustom%2FFullText.tpl;h=7c12f721ccdcce40a900006fc84764891c939450;hb=ef79e4f555894a098182a7394b50a6c5d990c37d;hp=f2bcfdebb169d2202bd1ae94ce1d3bd9b8d8e21a;hpb=3aadd2ba7d446618e33f5d6c1ad87d86a5231bb8;p=civicrm-core.git diff --git a/templates/CRM/Contact/Form/Search/Custom/FullText.tpl b/templates/CRM/Contact/Form/Search/Custom/FullText.tpl index f2bcfdebb1..7c12f721cc 100644 --- a/templates/CRM/Contact/Form/Search/Custom/FullText.tpl +++ b/templates/CRM/Contact/Form/Search/Custom/FullText.tpl @@ -34,7 +34,8 @@ {include file="CRM/Contact/Form/Search/Custom/EmptyResults.tpl"} {/if} -{assign var=table value=$form.table.value.0} +{* @TODO: This is confusing - the variable `table` is already set and used above, and now we set it again to something that is technically different but has the same value, except on a blank form where it doesn't exist, but effectively then is the same value that it already has which is ''. So do we need this line even? *} +{if (isset($form.table.value.0))}{assign var=table value=$form.table.value.0}{/if} {assign var=text value=$form.text.value} {if !empty($summary.Contact) }