Skip to content

Commit

Permalink
Hide REPLACE sql function from SearchKit
Browse files Browse the repository at this point in the history
Either way this describes the 3 params, but the new way is better understood by SearchKit,
which to-date cannot handle more than one param.
  • Loading branch information
colemanw committed Jul 31, 2021
1 parent b0aa346 commit 54633fb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Civi/Api4/Query/SqlFunctionREPLACE.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@ class SqlFunctionREPLACE extends SqlFunction {
protected static function params(): array {
return [
[
'optional' => FALSE,
'must_be' => ['SqlField', 'SqlString'],
],
[
'optional' => FALSE,
'must_be' => ['SqlField', 'SqlString'],
],
[
'min_expr' => 3,
'max_expr' => 3,
'optional' => FALSE,
'must_be' => ['SqlField', 'SqlString'],
],
Expand Down

0 comments on commit 54633fb

Please sign in to comment.