Here's the autocomplete field for client on site form.
The autocomplete function is done in client.module, while the site form has an autocomplete field pointing to it.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | hosting.nov_.20.xiong_.1.patch | 5.17 KB | xiong |
| #4 | hosting.nov_.20.xiong_.patch | 3.89 KB | xiong |
| #2 | hosting.nov_.18.autocomplete.1.xiong_.patch | 3.25 KB | xiong |
| hosting.nov_.18.autocomplete.xiong_.patch | 3.17 KB | xiong |
Comments
Comment #1
adrian commentedClient is a required field. And it defaults to the PROVISION_DEFAULT_CLIENT.
It should also be editable in the edit form.
Comment #2
xiong commentedClient set as required field and it's editable in the edit form now.
Comment #3
adrian commentedstill not defaulting correctly. And it's iterating through all the clients in the autocomplete instead of just doing a select
Comment #4
xiong commentedset the default.
the site node was not updating correctly because of wrong parameters - changed.
please review
Comment #5
xiong commented* fixed the issue of hiding client field when there's a value on create from
* tweaked the hosting_get_client($client) function, so now it accepts an array $client, with either title, email or nid value to be keyword to search
Comment #6
adrian commentedCommitted a modified version of the patch, as the one here broke the signup module.