From 671b46b3a167dbfdf7cbcb9a10df0362168705d5 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Wed, 8 Apr 2026 16:22:13 -0400 Subject: [PATCH 1/2] Change the autocomplete minimum string length to 3 to initiate a search (CFM-291) --- app/templates/element/peopleAutocomplete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/element/peopleAutocomplete.php b/app/templates/element/peopleAutocomplete.php index ab8204105..ce717c08c 100644 --- a/app/templates/element/peopleAutocomplete.php +++ b/app/templates/element/peopleAutocomplete.php @@ -130,7 +130,7 @@ fieldName: '', // This property hold the form input id type: '', personType: '', - minLength: 2, // XXX probably should be set by config and default to 3 + minLength: 3, // XXX probably should be set by config htmlId: '', // This property holds the vuejs input id actionUrl: '', inputValue: '', From 973071ef112d4660d4218a82998cdbe3543dbf3c Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Thu, 9 Apr 2026 09:54:57 -0400 Subject: [PATCH 2/2] Allow People in Picker regardless of status (CFM-291) --- app/src/Lib/Traits/IndexQueryTrait.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/Lib/Traits/IndexQueryTrait.php b/app/src/Lib/Traits/IndexQueryTrait.php index f4f28aab9..da9432f86 100644 --- a/app/src/Lib/Traits/IndexQueryTrait.php +++ b/app/src/Lib/Traits/IndexQueryTrait.php @@ -228,9 +228,9 @@ public function getIndexQuery(bool $pickerMode = false, array $requestParams = [ // Filter results that will occur from the searchable attributes // TODO: Move to its own function if($pickerMode) { - // Get only the active People - // XXX Perhaps we need to make this a configuration - $query = $query->where(fn(QueryExpression $exp, Query $query) => $exp->in($table->getAlias().'.status', [StatusEnum::Active, StatusEnum::GracePeriod])); + // XXX Deprecated in v5.2: Get only the active People + // XXX Make this a configuration instead: + // $query = $query->where(fn(QueryExpression $exp, Query $query) => $exp->in($table->getAlias().'.status', [StatusEnum::Active, StatusEnum::GracePeriod])); // Specific expressions per view $query = match(true) {