Skip to content

Commit a93af13

Browse files
artongeArtificialOwl
authored andcommitted
Fix is-define operator
Signed-off-by: Louis Chemineau <louis@chmn.me>
1 parent 33ac1c0 commit a93af13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/dav/lib/Files/FileSearchBackend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ private function transformSearchOperation(Operator $operator) {
386386
}
387387

388388
return new SearchComparison(
389-
ISearchComparison::COMPARE_DEFINED,
389+
$trimmedType,
390390
$field,
391391
$this->castValue($property, $value ?? ''),
392392
$extra ?? ''

lib/public/Files/Search/ISearchComparison.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface ISearchComparison extends ISearchOperator {
3535
public const COMPARE_LESS_THAN_EQUAL = 'lte';
3636
public const COMPARE_LIKE = 'like';
3737
public const COMPARE_LIKE_CASE_SENSITIVE = 'clike';
38-
public const COMPARE_DEFINED = 'defined';
38+
public const COMPARE_DEFINED = 'is-defined';
3939

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

0 commit comments

Comments
 (0)