polonel / trudesk

:coffee: :seedling: Trudesk is an open-source help desk/ticketing solution.
http://trudesk.io
Other
1.29k stars 430 forks source link

Error on create new Public Tickets #611

Closed 0toshigami closed 12 months ago

0toshigami commented 1 year ago

Is this a BUG REPORT or FEATURE REQUEST?:

What happened:

Environment:

polonel commented 1 year ago

To confirm this ONLY happen with Allow Public Tickets enabled?

Are you able to create a ticket within the regular interface while enabled?

0toshigami commented 1 year ago

@polonel I can create a ticket normally within the dashboard interface

github-actions[bot] commented 1 year ago

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.

polonel commented 1 year ago

This is likely related to the status changes. Investigating...

jnijland commented 1 year ago

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."}

github-actions[bot] commented 1 year ago

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.

github-actions[bot] commented 12 months ago

This issue was closed because it has been stalled for 5 days with no activity.

kareem-abdul commented 2 months ago

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