According to the code below, from hosting_client.module (lines 273-8), when I attempt to create a client with the same name as an existing client, it should suggest an alternative. This doesn't appear to work, as I always get the "Client name already in use" error instead.
$suggestion = hosting_client_validate_suggest($node);
if ($suggestion) {
form_set_error('title', t("Client name already in use, try @suggestion.", $suggestion));
} else {
form_set_error('title', t("Client name already in use."));
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | hosting_client_validate_suggest_broken_1237178_1.patch | 1.08 KB | ergonlogic |
Comments
Comment #1
ergonlogicfixed with attached patch.
Comment #2
ergonlogicFixing #1238618: Client form validation allows duplicate client names will probably require re-factoring the patch in #1.
Comment #3
ergonlogicAlso committed in my dev repo: http://drupalcode.org/sandbox/ergonlogic/1226310.git/commit/b0ab57d4f6b7...
Comment #4
steven jones commentedYup, changes look good, pulled in.