Auto-populate Logged-in User's Name & Email for Internal tickets

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Auto-populate Logged-in User's Name & Email for Internal tickets

Post by Lisaweb »

Version of script: 2.7.3
What terms did you try when SEARCHING for a solution: internal ticket

We LOVE HESK!!! We use it as an entirely internal system used to process orders, and now no one drops the ball on a sale! Each Sales Rep has their own category, and when they make a sale they open a new ticket internally and assign it to customer service for processing.

Because of this, they would LOVE it if we could add code that would simply populate the name & email of the logged in user into the corresponding "New Ticket" issuer fields. (In an editable box which could be overrided if need be). Many thanks for any assistance on this! :-)
- Lisa
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Auto-populate Logged-in User's Name & Email for Internal tickets

Post by Klemen »

This should be relatively easy, because the new_ticket.php file accepts arguments in the URL; you just need to modify the link.

Open admin/admin_main.php and change

Code: Select all

<a href="new_ticket.php">
to

Code: Select all

<a href="new_ticket.php?name='.urlencode($_SESSION['name']).'&amp;email='.urlencode($_SESSION['email']).'">
That should do the trick.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply