Update Repeat.php
authorfrancescbassas <francesc@babu.cat>
Mon, 24 Dec 2018 10:18:50 +0000 (11:18 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Dec 2018 10:18:50 +0000 (11:18 +0100)
CRM/Report/Form/Contribute/Repeat.php

index 0beac39635cf5e394d472f93febf8642d907ff8b..c5466dd4b901f4b73ef5210c71c843116f1a5673 100644 (file)
@@ -574,7 +574,7 @@ LEFT JOIN $this->tempTableRepeat2 {$this->_aliases['civicrm_contribution']}2
     }
     else {
       foreach ($fields['fields'] as $fld_id => $value) {
-        if (!($fld_id == 'total_amount1') && !($fld_id == 'total_amount2') && !(substr( $fld_id, 0, 7 ) === "custom_")) {
+        if (!($fld_id == 'total_amount1') && !($fld_id == 'total_amount2') && !(substr($fld_id, 0, 7) === "custom_")) {
           $found = FALSE;
           $invlidGroups = array();
           foreach ($fields['group_bys'] as $grp_id => $val) {