-
Notifications
You must be signed in to change notification settings - Fork 14
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
Unable to assign ticket type when creating #6
Comments
https://github.com/uvdesk/api-bundle/blob/master/API/Tickets.php#L217 Add "type" in this array and make a try. |
@papnoisanjeev no, adding I fixed it by adding the following code to the if (array_key_exists('type', $data)) {
$ticketType = $entityManager->getRepository('UVDeskCoreFrameworkBundle:TicketType')->findOneByCode($data['type']);
$ticketData['type'] = $ticketType;
} |
Glad to know that it is working for you !! |
@papnoisanjeev Any idea when this will happen? |
Most probably end of this month or may be first or second week of next month. |
Description
When creating a ticket using the api bundle it gets the default ticket type even when sending a type field with the request.
How to reproduce
Create two Ticket Types in the dashboard
Send a
POST
request tomy-domain/api/v1/ticket
withThe newly created ticket has the
default
ticket type.Possible Cause
In
Webkul\UVDesk\ApiBundle\API\Tickets::createTicket
we don't do anything with$data['type']
The text was updated successfully, but these errors were encountered: