Skip to content

Commit

Permalink
Merge pull request #13 from m0hamed/fixes
Browse files Browse the repository at this point in the history
Fixed bug where different filtering values for reports are not shown corectly
  • Loading branch information
ruleant committed Aug 22, 2013
2 parents 3427493 + 386fcaf commit e5ff912
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Controller/ReportsController.php
Expand Up @@ -11,6 +11,7 @@ class ReportsController extends AppController {
public $helpers = array('Html', 'Form', 'Reports', 'Incidents');

public function index() {
$this->Report->recursive = -1;
$this->set('distinct_statuses',
$this->Report->find('arrayList', array(
'fields' => array('DISTINCT Report.status'),
Expand Down Expand Up @@ -156,7 +157,7 @@ protected function _getSearchConditions($aColumns) {
for ( $i = 0; $i < count($aColumns); $i++ ) {
if ($this->request->query('sSearch_' . $i) != '') {
$searchConditions[] = array($aColumns[$i] . " LIKE" =>
"%" . $this->request->query('sSearch_' . $i) . "%");
$this->request->query('sSearch_' . $i));
}
}
return $searchConditions;
Expand Down

0 comments on commit e5ff912

Please sign in to comment.