Bug #2919
closedinvite errors not displaying correctly
Description
When an invite is a duplicate or the recipient is the owner for example it is just saying the recipient is invalid instead of giving a more exact error such as that they are a duplicate. This is due to the WHERE checks inside the queries, which should be removed as it needs to be done on PHP side for better error handling.
Updated by krileon about 13 years ago
This happens when inviting by username or name because the list is trying to exclude already existing users before sending to the multiple user found list. Unsure how to approach. If I remove the checks in the query then users would be sent to a page with numerous users who are already invited, which was a previous complaint.. need to somehow make the error more clear without ruining these checks.
Updated by krileon about 13 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Fixed by performing an exact match against the invite criteria after it fails to find any users so it can properly calculate its error. If the search is too broad it'll give the typical invalid recipient error.