Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix is-define operator
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge authored and ArtificialOwl committed Nov 22, 2023
commit a93af13c12fc072c8b612b72c86ea3540f19e0fd
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