Dolibarr version: 10.0.4
and 12.0.0-alpha
Module: Tickets
URL: htdocs/public/ticket/create_ticket.php
When creating a new ticket form public interface, attachments are uploaded but not linked to the ticket.
How to reproduce
- Go the the public ticket creation page and fill the form
- Choose file… (button)
- Attach this file (button)
3.1. File(s) uploaded successfully todocuments/ticket/temp/
- New Ticket (button)
4.1. A new ticket has been created with IDc4bgxcgr9kj39y5b
and RefTS1911-0010
. File moved fromdocuments/ticket/temp/
todocuments/ticket/c4bgxcgr9kj39y5b/
. Reference to file present in database. - Access the ticket as member. Attachment is not listed within the linked files.
If a message with a new attachment is added to the ticket (from public ticket interface), the file is uploaded to documents/users/0/temp/
, then moved to the ticket directory (ex. documents/ticket/TS1911-0010/
) and listed as linked file.
When created a new ticket from the admin interface, attachments are uploaded and linked correctly.
Can anyone confirm having the same issue? I think it is a bug but didn’t want to waste developers time submitting it to dolibarr’s github issues in case it isn’t.