#25348 closed enhancement (fixed)
Autocomplete for Add New Site → Admin Email
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | has-patch |
Focuses: | ui, multisite | Cc: |
Description
We have autocomplete for adding users to sites - we should do the same for the admin email for a new site.
Previously: #19810
Attachments (3)
Change History (13)
#2
@
11 years ago
I imagine we could make it use the same Ajax search that adding users to a site uses, just need to be able to have user_email as the value instead of user_login.
#3
@
11 years ago
- Keywords has-patch added
Gave it a run in 25348.2.diff. Had to switch to an explicit .each()
in the JS (as opposed to relying on jQuery's implicit one) to have access to the element.
#5
@
11 years ago
25348.2.diff looks good and tests good. +1
As expected, it restricts the user search to members of the current "site". When in the network admin, the current site is the current network, so the search returns properly. If I was to create a new network, users from other networks would not return in the search.
It may be interesting to have a filter in there one day to allow for the members of multiple networks to be searched at once. I don't think that's today though. :)
It could also be nice to have an index on user_email
in the DB, but it looks like we've been down that road in a couple tickets and the answer is an alter table when needed.
This makes sense. I always end up relying on browser input history and that's no fun.
We would need to figure out what that list should look like and then how to retrieve that data in advance. Emails of users that are registered on the current network?