From 3d05d368687b9a8ef5236ce4b15e80f758701c5a Mon Sep 17 00:00:00 2001 From: kurund Date: Sun, 2 Mar 2014 04:36:27 +0530 Subject: [PATCH] zero record text fixes CRM-14201 ---------------------------------------- * CRM-14201: http://issues.civicrm.org/jira/browse/CRM-14201 --- templates/CRM/Contact/Page/View/RelationshipSelector.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Contact/Page/View/RelationshipSelector.tpl b/templates/CRM/Contact/Page/View/RelationshipSelector.tpl index 78e428b3a8..648f712e40 100644 --- a/templates/CRM/Contact/Page/View/RelationshipSelector.tpl +++ b/templates/CRM/Contact/Page/View/RelationshipSelector.tpl @@ -55,7 +55,12 @@ var context = {/literal}"{$context}"{literal}; var sourceUrl = {/literal}'{crmURL p="civicrm/ajax/contactrelationships" h=0 q="context=$context&cid=$contactId"}'{literal}; - var ZeroRecordText = {/literal}'{ts escape="js"}No matches found.{/ts}'{literal}; + if (context == 'user') { + var ZeroRecordText = {/literal}'{ts escape="js"}There are no related contacts / organizations on record for you.{/ts}'{literal}; + } + else { + var ZeroRecordText = {/literal}'{ts escape="js"}There are no Relationships entered for this contact.{/ts}'{literal}; + } {/literal}{$context}{literal}oTable = cj('#crm-contact-relationship-selector-' + context).dataTable({ "bFilter": false, -- 2.25.1