Skip to content

Commit

Permalink
Fixed #7190: CPD Search doesn't work with or logic since upgrade
Browse files Browse the repository at this point in the history
dev: index for or/and was wrong. also fixed less / greater then
  • Loading branch information
mennodekker committed Jan 15, 2013
1 parent 829c1a4 commit 84a0a10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/models/Participants.php
Expand Up @@ -719,16 +719,16 @@ function getParticipantsSearchMultipleCondition($condition)
break;
case 'greaterthan':
$operator = '>';
$aParams[$param] = '%'.$sValue.'%';
$aParams[$param] = $sValue;
break;
case 'lessthan':
$operator = '<';
$aParams[$param] = '%'.$sValue.'%';
$aParams[$param] = $sValue;
break;
}
if (isset($condition[($i*4)+3]))
if (isset($condition[(($i-1)*4)+3]))
{
$booloperator= strtoupper($condition[($i*4)+3]);
$booloperator= strtoupper($condition[(($i-1)*4)+3]);
}
else
{
Expand Down

0 comments on commit 84a0a10

Please sign in to comment.