a couple more comments
authoreileen <emcnaughton@wikimedia.org>
Tue, 1 Dec 2015 16:35:52 +0000 (05:35 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 1 Dec 2015 16:35:52 +0000 (05:35 +1300)
CRM/Contribute/Form/Task.php
CRM/Contribute/Selector/Search.php

index 423c67437a377bdbdd9a08ea573ea498b9e1a424..984256b27d23572f102092f1fcf6ff97553dc183 100644 (file)
@@ -124,6 +124,8 @@ class CRM_Contribute_Form_Task extends CRM_Core_Form {
       $query = new CRM_Contact_BAO_Query($queryParams, NULL, NULL, FALSE, FALSE,
         CRM_Contact_BAO_Query::MODE_CONTRIBUTE
       );
+      // @todo the function CRM_Contribute_BAO_Query::isSoftCreditOptionEnabled should handle this
+      // can we remove? if not why not?
       if ($form->_includesSoftCredits) {
         $contactIds = $contributionContactIds = array();
         $query->_rowCountClause = " count(civicrm_contribution.id)";
index ee9f1fa49e539348ca5a4d93ae78acdd69ce7a8f..e6c29c87860b45ca02bb583acf822871b350ee64 100644 (file)
@@ -194,6 +194,8 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C
       NULL, FALSE, FALSE,
       CRM_Contact_BAO_Query::MODE_CONTRIBUTE
     );
+    // @todo the function CRM_Contribute_BAO_Query::isSoftCreditOptionEnabled should handle this
+    // can we remove? if not why not?
     if ($this->_includeSoftCredits) {
       $this->_query->_rowCountClause = " count(civicrm_contribution.id)";
       $this->_query->_groupByComponentClause = " GROUP BY contribution_search_scredit_combined.id, contribution_search_scredit_combined.contact_id, contribution_search_scredit_combined.scredit_id ";