Disable email & name requirement when Inserting a new ticket

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
kilimats
Posts: 18
Joined: Wed Nov 02, 2011 1:53 am

Disable email & name requirement when Inserting a new ticket

Post by kilimats »

I have created an NON-admin profile for one of my client to let him manage submitted tickets, I want him to be able to create new ticket without entering a name and email everytime since he is already log in as himself

How can this be done ? :(
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Disable email & name requirement when Inserting a new ti

Post by Klemen »

If he is using the "Submit a ticket" form inside administration panel you can try adding this

Code: Select all

if ( ! isset($_SESSION['as_name'])) {$_SESSION['as_name'] = $_SESSION['name'];}
if ( ! isset($_SESSION['as_email'])) {$_SESSION['as_email'] = $_SESSION['email'];}
just above

Code: Select all

/* List of users */
in file "admin/new_ticket.php".
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