+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2016 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
+ * @copyright CiviCRM LLC (c) 2004-2016
* $Id$
*
*/
protected $_caseDetailExtra = array();
- /**
- */
+ protected $_customGroupExtends = array('Case');
+
/**
*/
public function __construct() {
),
'status_id' => array(
'title' => ts('Case Status'),
+ 'type' => CRM_Utils_Type::T_INT,
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
- 'options' => $this->case_statuses,
+ 'options' => CRM_Case_BAO_Case::buildOptions('status_id', 'search'),
),
'case_type_id' => array(
'title' => ts('Case Type'),
+ 'type' => CRM_Utils_Type::T_INT,
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
- 'options' => $this->case_types,
+ 'options' => CRM_Case_BAO_Case::buildOptions('case_type_id', 'search'),
),
'is_deleted' => array(
'title' => ts('Deleted?'),
'case_role' => array(
'name' => 'relationship_type_id',
'title' => ts('Case Role(s)'),
+ 'type' => CRM_Utils_Type::T_INT,
'operatorType' => CRM_Report_Form::OP_MULTISELECT,
'options' => $this->rel_types,
),
}
}
}
+ $this->_selectClauses = $select;
$this->_select = 'SELECT ' . implode(', ', $select) . ' ';
}
public function groupBy() {
$this->_groupBy = " GROUP BY {$this->_aliases['civicrm_case']}.id";
+ $this->_groupBy .= CRM_Contact_BAO_Query::getGroupByFromSelectColumns($this->_selectClauses, "{$this->_aliases['civicrm_case']}.id");
}
/**