$paymentInstruments = CRM_Contribute_PseudoConstant::paymentInstrument();
CRM_Core_Error::debug('noRepeats',$this->_noRepeats);
+ $repeatFound = FALSE;
foreach ($rows as $rowNum => $row) {
-
+ CRM_Core_Error::debug('repeatFound',$repeatFound . " " . $rowNum);
+ if ($repeatFound == FALSE ||
+ $repeatFound < $rowNum - 1
+ ) {
+ unset($checkList);
+ $checkList = array();
+ }
if (!empty($this->_noRepeats) && $this->_outputMode != 'csv') {
// not repeat contact display names if it matches with the one
// in previous row
- $repeatFound = FALSE;
CRM_Core_Error::debug('checklist',$checkList);
foreach ($row as $colName => $colVal) {
- if ($repeatFound == FALSE) {
- unset($checkList);
- $checkList = array();
- }
if (in_array($colName, $this->_noRepeats) &&
$rowNum > 0
) {
if($colName == 'civicrm_contact_exposed_id') {
$rows[$rowNum]['civicrm_contact_sort_name'] = "";
}
- $repeatFound = TRUE;
+ $repeatFound = $rowNum;
}
}
if (in_array($colName, $this->_noRepeats)) {