Actions
Defect #6826
closedClicking "Add" twice creates duplicate member record
Status:
Closed
Priority:
Low
Assignee:
Category:
Permissions and roles
Target version:
Start date:
2010-11-04
Due date:
% Done:
100%
Estimated time:
Resolution:
Fixed
Affected version:
Description
When editing members for a project:
If you select a user and click "Add" twice before the server request is completed, it will add a duplicate member record. It then shows up as two items in the projects dropdown menu, and probably other side-effects.
Possible solutions:
1. Add a unique key on `members (user_id, project_id)`
2. Prevent accidental re-submit on the front end, by disabling the button until ajax completes.
Actions