zero record text fixes CRM-14201
authorkurund <kurund@civicrm.org>
Sat, 1 Mar 2014 23:06:27 +0000 (04:36 +0530)
committerkurund <kurund@civicrm.org>
Sat, 1 Mar 2014 23:06:27 +0000 (04:36 +0530)
----------------------------------------
* CRM-14201:
  http://issues.civicrm.org/jira/browse/CRM-14201

templates/CRM/Contact/Page/View/RelationshipSelector.tpl

index 78e428b3a8c3d2cec2e490f48776be845efd8d43..648f712e40bc8145a147f9b83c54849f8dec27d4 100644 (file)
     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,