Project

General

Profile

Actions

Bug #2919

closed

invite errors not displaying correctly

Added by krileon about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
19 October 2011
Due date:
% Done:

100%

Estimated time:

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.

https://www.joomlapolis.com/forum/238-general-discussion/179932-couple-of-issues-with-groupjive-config

Actions #1

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.

Actions #2

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.

Actions #3

Updated by krileon almost 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF