Andrew,
It looks like getSubmittedTickets might not return the correct result set. In the function, the where clause which retrieves the list of tickets for a given email uses the userid criteria. You may want to change the criteria to match against the email instead.
When a ticket is created, it's userID is set. However, you can always edit the ticket's owner email address, but the userid remains the same.
from: $whereClauses[] = 'userid=' . ((int) $userId);
to: $whereClauses[] = 'email="'. $email .'"';
What do you think?
Peter
Page 1 of 1
getSubmittedTicket does not return correct result set
#2
Posted 30 November 2008 - 06:07 PM
The GetSubmittedTickets would also be wrong then wouldn't it as this is getting all tickets owned by the user id of the email address supplied via the API?
Craig Brass
Managing Director and Chief Software Architect - Craig Brass Systems
Managing Director and Chief Software Architect - Craig Brass Systems
Share this topic:
Page 1 of 1
Sign In »
Register Now!
Help

Back to top








