Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
PCBK-213 - fixed booking status filter behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Valihora authored and guanhuan committed Dec 9, 2015
1 parent db0ebd6 commit c8cd7fc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CRM/Booking/BAO/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,8 @@ function whereClauseSingle(&$values, &$query) {
$val[$k] = $k;
}
}
$status = implode(',', $val);
if (count($val) > 1) {
$op = 'IN';
$status = "({$status})";
}
$status = array_values($val);
$op = 'IN';
}
else {
$op = '=';
Expand Down

0 comments on commit c8cd7fc

Please sign in to comment.