mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix is-define operator
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
33ac1c0433
commit
a93af13c12
2 changed files with 2 additions and 2 deletions
|
|
@ -386,7 +386,7 @@ class FileSearchBackend implements ISearchBackend {
|
|||
}
|
||||
|
||||
return new SearchComparison(
|
||||
ISearchComparison::COMPARE_DEFINED,
|
||||
$trimmedType,
|
||||
$field,
|
||||
$this->castValue($property, $value ?? ''),
|
||||
$extra ?? ''
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue