This file handles displaying the user options for, and subsequently enacting, tickets being moved to/from the helpdesk, from/to forum threads.
Validates the user permission and session, then displays a list of boards the user can create new topics in. Accessed through action=helpdesk;sa=tickettotopic;ticket=x;sessvar=sessid
After checking permissions, and so on, begin to actually move posts. This is done by invoking SMF's createPost function to make the new thread and repost all the ticket's posts as new thread posts using defaults for some settings. Operations: - check the user can see the board they are linking to - move the ticket's text as the opening post - update the ticket row if the post was modified before - get the rest of the replies - step through and post, updating for modified details - send the notification PM if we're doing that - update the attachments table - update the action log - remove the ticket from the DB
Expects $context['custom_fields'] to have been prepared already in {@link}
Parameter: $body
Expected type: string
The body of the message, to which the custom fields should be appended.
Parameter: $id_msg
Expected type: int
The message id to consider, or in the case of the ticket's opening post, the ticket id.
Parameter: $type
Expected type: int
Should contain either CFIELD_TICKET or CFIELD_REPLY to confirm whether we are looking at the ticket or the post.
Validates the user permission and session, of course. Accessed through action=helpdesk;sa=topictoticket;topic=x;sessvar=sessid
After checking permissions, and so on, begin to actually move posts. Broadly this is done using {@link}, which has hooks specifically to deal with post modification times (written in specifically to ease this function's workload) Operations: - get the topic information (and checking topic access permission in the process) - identify the status of the topic (new/with staff/with user) - create the new ticket from these details - assuming there are replies, query for them - step through and repost - send the notification PM if we're doing that - update the attachments table - update the action log - remove the topic from the forum
Page created in 0.018 seconds with 13 queries.