From 8edb984958d49ad784ca4c9c1eea5c32edce7e9c Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 24 May 2013 14:36:07 +1200 Subject: [PATCH] CRM-12687 make DAO field optional when defining report columns --- CRM/Report/Form.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index fdff9a942f..e6a90b0b09 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -428,10 +428,13 @@ class CRM_Report_Form extends CRM_Core_Form { require_once str_replace('_', DIRECTORY_SEPARATOR, $table['bao'] . '.php'); eval("\$expFields = {$table['bao']}::exportableFields( );"); } - else { + elseif (array_key_exists('dao', $table)){ require_once str_replace('_', DIRECTORY_SEPARATOR, $table['dao'] . '.php'); eval("\$expFields = {$table['dao']}::export( );"); } + else{ + $expFields = array(); + } $doNotCopy = array('required'); -- 2.25.1