aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2023-11-16 11:10:21 +0100
committerMaxence Lange <maxence@artificial-owl.com>2023-11-22 12:43:27 -0100
commita93af13c12fc072c8b612b72c86ea3540f19e0fd (patch)
treefaea0448ac8ec1da44b4a7388980e16bad5ec395
parent33ac1c04337741d4c8bb4903d216c18ea5ce1d9d (diff)
downloadnextcloud-server-a93af13c12fc072c8b612b72c86ea3540f19e0fd.tar.gz
nextcloud-server-a93af13c12fc072c8b612b72c86ea3540f19e0fd.zip
Fix is-define operator
Signed-off-by: Louis Chemineau <louis@chmn.me>
-rw-r--r--apps/dav/lib/Files/FileSearchBackend.php2
-rw-r--r--lib/public/Files/Search/ISearchComparison.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Files/FileSearchBackend.php b/apps/dav/lib/Files/FileSearchBackend.php
index d52eb60729a..419a0c5ed3b 100644
--- a/apps/dav/lib/Files/FileSearchBackend.php
+++ b/apps/dav/lib/Files/FileSearchBackend.php
@@ -386,7 +386,7 @@ class FileSearchBackend implements ISearchBackend {
}
return new SearchComparison(
- ISearchComparison::COMPARE_DEFINED,
+ $trimmedType,
$field,
$this->castValue($property, $value ?? ''),
$extra ?? ''
diff --git a/lib/public/Files/Search/ISearchComparison.php b/lib/public/Files/Search/ISearchComparison.php
index e1650dabc61..ba02f39996f 100644
--- a/lib/public/Files/Search/ISearchComparison.php
+++ b/lib/public/Files/Search/ISearchComparison.php
@@ -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