Ok, no module will mature without somebody thoroughly trying it. So I've decide to bombard you with issues ;)

To reproduce this one install clean Drupal 7, go to http://test.name.com/user/1/organizations/new and create a new organization with exactly the same name as username for user #1 and you will get:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'name' for key 'name': INSERT INTO {users} (uid, name, mail, created, status, bundle) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => 3 [:db_insert_placeholder_1] => name [:db_insert_placeholder_2] => info@name.com [:db_insert_placeholder_3] => 1452946905 [:db_insert_placeholder_4] => 1 [:db_insert_placeholder_5] => organization ) in drupal_write_record() (line 7333 of /home/name/domains/test.name.com/public_html/includes/common.inc).

Not a coder, unfortunately, otherwise I'd submit a patch file.

Comments

nickonom created an issue.