/** * Get where clause for an active master-detail relationship * @return string */ public function getMasterTableSQLClause() { if ($this->mode == CHART_DASHBOARD) { return ""; } return parent::getMasterTableSQLClause(); }