Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From response unable to handle items in response #87

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant