Fix GenerateData for only_full_group_by sqlMode
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 2 Nov 2017 00:14:44 +0000 (11:14 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 2 Nov 2017 00:14:44 +0000 (11:14 +1100)
sql/GenerateData.php

index f837c0a70f4639769f233d9ac75858b194e6f343..2ef3c09c53704ad38f3e2e38b0dec51ea6488a92 100644 (file)
@@ -1951,7 +1951,7 @@ AND    a.details = 'Membership Payment'
     $sql = "INSERT INTO civicrm_contribution (contact_id, financial_type_id, payment_instrument_id, receive_date, total_amount, currency, receipt_date, source, contribution_status_id)
 SELECT  `contact_id`, $financialTypeID, $paymentInstrumentID, now(), `fee_amount`, 'USD', now(), CONCAT(ce.title, ' : Offline registration'), 1  FROM `civicrm_participant` cp
 LEFT JOIN civicrm_event ce ON ce.id = cp.event_id
-group by `contact_id`;";
+group by `contact_id`, `fee_amount`, `title`;";
 
     $this->_query($sql);