Closed 0toshigami closed 12 months ago
To confirm this ONLY happen with Allow Public Tickets enabled?
Are you able to create a ticket within the regular interface while enabled?
@polonel I can create a ticket normally within the dashboard interface
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This is likely related to the status changes. Investigating...
I've got the same issue on a completely fresh install. Public tickets are not working for me.
success: false, error: "tickets validation failed: status: Path `status` is required."}
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
This issue still exists, I think the problem is that the status
field in the ticket object is marked as required
https://github.com/polonel/trudesk/blob/ad4c42c3b88c42d90e41b3615f1ee205925ad03e/src/models/ticket.js#L95-L100
and a default status is not being set in the public ticket creation API
https://github.com/polonel/trudesk/blob/ad4c42c3b88c42d90e41b3615f1ee205925ad03e/src/controllers/api/v1/tickets.js#L635-L644
Is this a BUG REPORT or FEATURE REQUEST?:
What happened:
/api/v1/public/tickets/create
, a 400 Bad Request is returned.Environment: