Jump to content

hook to alter ticket subject on submission


evcz

Recommended Posts

Hi

 

I'm looking for some ideas to alter ticket subject during submission (want to append custom data to it based on IP that is submitting the ticket, only for a specific department)

 

is there a hook I can use that can "filter" the ticket before submitting it into the DB?

Link to comment
Share on other sites

Just now, evcz said:

is there a hook I can use that can "filter" the ticket before submitting it into the DB?

TicketOpen would run when a client creates a ticket; TicketOpenAdmin would run if an admin opens the tickets - either could be used to get the current ticket subject and department id or name; if applicable dept, append subject with your additional info and then save it back to the database.

Link to comment
Share on other sites

actually there's something (WHMCS api bug?)

 

if the ticket submitted has an attachment when doing AddTicketNote the same attachment is also attached as a note (despite not populating that value when doing the local API call)

Link to comment
Share on other sites

  • 1 month later...
On 8/8/2019 at 8:32 PM, evcz said:

actually there's something (WHMCS api bug?)

 

if the ticket submitted has an attachment when doing AddTicketNote the same attachment is also attached as a note (despite not populating that value when doing the local API call)

I found the same error!

Link to comment
Share on other sites

8 hours ago, evcz said:

once you will see CORE-13584 mentioned in the changelog it means it has been fixed 

or possibly more accurately, WHMCS believe it to be fixed. 😛

it's in the v7.8.3 changelog.

Quote

CORE-13584 - Prevent duplicate attachments when invoking AddTicketNote during TicketOpen hook

Edited by brian!
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated