Skip to content

Commit

Permalink
Merge branch 'hotfix-intparam'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnvanbreda committed Apr 1, 2021
2 parents 44415a4 + 0b79807 commit 4253843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/config/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* @var string
*/
$config['version'] = '5.1.3';
$config['version'] = '5.1.4';

/**
* Version release date.
Expand Down
4 changes: 2 additions & 2 deletions modules/indicia_svc_data/controllers/services/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1304,14 +1304,14 @@ protected function apply_get_parameters_to_db($count = FALSE) {
}
$where["$this->viewname.$param"] = $value;
}
if ($this->view_columns[$param]['type'] === 'bool') {
elseif ($this->view_columns[$param]['type'] === 'bool') {
if (!preg_match('/^[tf]$/i', trim($value))) {
throw new ValidationError('Validation error', 2003, 'Invalid format for boolean column filter.');
}
$where["$this->viewname.$param"] = $value;
}
elseif (strpos($value, '*') === FALSE) {
$where["$this->viewname.$param"] = pg_escape_string($value);
$where["$this->viewname.$param"] = $value;
}
else {
$like["$this->viewname.$param"] = pg_escape_string(str_replace('*', '%', $value));
Expand Down

0 comments on commit 4253843

Please sign in to comment.