fix(ui): prevent UI to search for users with empty string

This commit is contained in:
Hivert Quentin
2026-01-29 15:58:00 +01:00
parent b46bf8b8dd
commit 389e8e64c4
2 changed files with 6 additions and 2 deletions

View File

@@ -462,7 +462,9 @@
- (int) searchMinimumWordLength
{
return [self integerForKey: @"SOGoSearchMinimumWordLength"];
int min = [self integerForKey: @"SOGoSearchMinimumWordLength"];
if(min<1) min=1;
return min;
}
- (BOOL) notifyOnPersonalModifications

View File

@@ -36,7 +36,9 @@
return settings;
},
minimumSearchLength: function () {
return angular.isNumber(minimumSearchLength) ? minimumSearchLength : 2;
minSearch = angular.isNumber(minimumSearchLength) ? minimumSearchLength : 2;
minSearch = minSearch > 1 ? minSearch : 1;
return minSearch;
}
})