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."));
    }

Comments

ergonlogic’s picture

Status: Active » Needs review
StatusFileSize
new1.08 KB

fixed with attached patch.

ergonlogic’s picture

Fixing #1238618: Client form validation allows duplicate client names will probably require re-factoring the patch in #1.

ergonlogic’s picture

Assigned: Unassigned » ergonlogic
steven jones’s picture

Status: Needs review » Fixed

Yup, changes look good, pulled in.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit eeec737 on 7.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x authored by ergonlogic, committed by Steven Jones:
    Issue #1237178 by ergonlogic: Fixed client name suggestion.
    
    

  • Commit eeec737 on 7.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x authored by ergonlogic, committed by Steven Jones:
    Issue #1237178 by ergonlogic: Fixed client name suggestion.