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 authored and ArtificialOwl committed Nov 21, 2023
1 parent 530e55e commit 1386738
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 1386738

Please sign in to comment.