projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6bd202
)
CRM-21412 Do not give fatal error on report when no fields selected
author
eileen
<emcnaughton@wikimedia.org>
Wed, 8 Nov 2017 21:44:09 +0000
(10:44 +1300)
committer
eileen
<emcnaughton@wikimedia.org>
Wed, 15 Nov 2017 21:54:01 +0000
(10:54 +1300)
CRM/Report/Form.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Report/Form.php
b/CRM/Report/Form.php
index 19d61a1143e010a2d67ea615b54171b21adc95af..295796c42427a58f69125c0d2966ea07bd10b79a 100644
(file)
--- a/
CRM/Report/Form.php
+++ b/
CRM/Report/Form.php
@@
-2396,6
+2396,11
@@
WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
}
}
+ if (empty($select)) {
+ // CRM-21412 Do not give fatal error on report when no fields selected
+ $select = array(1);
+ }
+
$this->_selectClauses = $select;
$this->_select = "SELECT " . implode(', ', $select) . " ";
}