CRM-14107 fix for Full Text Search
authorCiviCRM <info@civicrm.org>
Wed, 4 Jun 2014 11:37:48 +0000 (17:07 +0530)
committerCiviCRM <info@civicrm.org>
Wed, 4 Jun 2014 11:37:48 +0000 (17:07 +0530)
----------------------------------------
* CRM-14107: Implement Previous / Next navigation on contact summary pages when accessed from a custom search
  https://issues.civicrm.org/jira/browse/CRM-14107

CRM/Contact/Form/Search/Custom/FullText.php

index 1801ceb71a31fa0a4f87bb7ba4791c74797592df..59e293b3e59dd8c4f7f3ba3636e6d56f782c1f19 100644 (file)
@@ -965,8 +965,8 @@ FROM   {$this->_tableName} contact_a
       case 'Contact':
         $sql = "
 INSERT INTO {$this->_tableName}
-( contact_id, sort_name, display_name, table_name )
-SELECT     c.id, c.sort_name, c.display_name, 'Contact'
+( id, contact_id, sort_name, display_name, table_name )
+SELECT     c.id, ct.entity_id, c.sort_name, c.display_name, 'Contact'
   FROM     {$this->_entityIDTableName} ct
 INNER JOIN civicrm_contact c ON ct.entity_id = c.id
 {$this->_limitDetailClause}