Skip to content

Commit

Permalink
Fix is-define operator
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Nov 16, 2023
1 parent 03c6cda commit cf5b620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/Files/FileSearchBackend.php
Expand Up @@ -386,7 +386,7 @@ private function transformSearchOperation(Operator $operator) {
}

return new SearchComparison(
ISearchComparison::COMPARE_DEFINED,
$trimmedType,
$field,
$this->castValue($property, $value ?? ''),
$extra ?? ''
Expand Down
2 changes: 1 addition & 1 deletion lib/public/Files/Search/ISearchComparison.php
Expand Up @@ -35,7 +35,7 @@ interface ISearchComparison extends ISearchOperator {
public const COMPARE_LESS_THAN_EQUAL = 'lte';
public const COMPARE_LIKE = 'like';
public const COMPARE_LIKE_CASE_SENSITIVE = 'clike';
public const COMPARE_DEFINED = 'defined';
public const COMPARE_DEFINED = 'is-defined';

public const HINT_PATH_EQ_HASH = 'path_eq_hash'; // transform `path = "$path"` into `path_hash = md5("$path")`, on by default

Expand Down

0 comments on commit cf5b620

Please sign in to comment.