Skip to content

Commit

Permalink
Fix condition see BT#11384
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jul 11, 2016
1 parent 56d032e commit 786a837
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/inc/ajax/model.ajax.php
Expand Up @@ -109,6 +109,10 @@ function getWhereClause($col, $oper, $val)
$forceSearch = isset($_REQUEST['_force_search']) ? $_REQUEST['_force_search'] : false;
$extra_fields = array();

if (!empty($searchString)) {
$search = 'true';
}

if (($search || $forceSearch) && ($search !== 'false')) {
$whereCondition = ' 1 = 1 ';
$whereConditionInForm = getWhereClause($searchField, $searchOperator, $searchString);
Expand Down

0 comments on commit 786a837

Please sign in to comment.