Page 1 of 1
Disable email & name requirement when Inserting a new ticket
Posted: Wed Nov 02, 2011 1:55 am
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 ?

Re: Disable email & name requirement when Inserting a new ti
Posted: Wed Nov 02, 2011 3:41 pm
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
in file "admin/new_ticket.php".