Open Bug 632318 Opened 15 years ago Updated 10 years ago

minChars for autocomplete should be a constant

Categories

(Bugzilla :: User Interface, enhancement)

enhancement
Not set
normal

Tracking

()

REOPENED

People

(Reporter: dominikruf, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.86 Safari/534.13 Build Identifier: The new autocomplete feature in bugzilla 4.0 starts when you enter 3 characters. I think this number should be configurable so I can use smaller numbers then 3 if I have only a few users. Reproducible: Always
OS: Windows XP → All
Hardware: x86 → All
Version: unspecified → 4.0
If you only have a few users, the usemenuforusers parameter would better suit your needs.
I agree with LpSolit there, pretty much. Also, I believe that the number only appears in one place in the templates, so it wouldn't be that hard to edit manually. Thanks for reporting your suggestion, though--please do tell us if you have other ideas.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
@ Frédéric: Well personally I disagree. I think a autocomplete input box is always better (more user friendly) then a mulitselect but YMMV. @ Max: I already tried changing the number in the javascript so that ajax requests are made at the first character you enter. But the returning response did not contain any users. Only if the request contained at least 3 characters the response contained users. So changing the behavior yourself is not that trivial. That's why I filed this entry.
Oh, yes, because Bugzilla::User::match has that hardcoded, right. I suppose we could move this into a constant and then at least it would be editable in one place.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: WONTFIX → ---
Summary: minQueryLength for autocomplete should be configurable → minQueryLength for autocomplete should be a constant
That would be great.
Summary: minQueryLength for autocomplete should be a constant → minChars for autocomplete should be a constant
You need to log in before you can comment on or make changes to this bug.