Skip to content

Conversation

msullivanJIT
Copy link

I'm not sure if there is a better way to handle this, but when using TicketAttachmentService->findById(), the response from the API returns an array of [items] and TicketAttachmentEntity->fromResponse() has no way to handle a response with an array for $responseArray["items"] and only accounts for a $responseArray["item"]. The update verifies there is only 1 response in the ["items"] since there should only be 1 response when searching by ID and then returns the individual item as ["items"][0].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants