Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Mods and Customizations

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-04-2010, 03:54 PM
Ari Ari is offline
Junior Member
 
Join Date: Jun 2010
Posts: 1
Default A Quick Patch to Allow pre-populate of new ticket form from GET variables

Here's a quick hack which allows for new support tickets to be pre-populated from get variables - very handy if you want to pre-fill email address, phone number, etc...

in /include/client/open.inc.php , just add this 1 line on line 4 (after $info=($_POST && $errors...)

PHP Code:
//If there are get variables, but post is blank, use GET variables instead
$info = ($_GET && !$_POST) ? $_GET $info
That's it! Now you can prepopulate the fields when creating a new ticket using get variables, i.e.
Code:
http://website.com/support/open.php?email=test@email.com&name=Test%20Name&phone=123-432-2543
Hope this helps!
Reply With Quote
  #2  
Old 06-11-2010, 12:47 PM
richy richy is offline
Junior Member
 
Join Date: Jun 2010
Posts: 1
Default Great, but

Great mod

I need this, but what happen if osticket gets an update?
Reply With Quote
  #3  
Old 06-27-2010, 01:23 PM
cyberde cyberde is offline
Member
 
Join Date: Jun 2010
Location: Netherlands
Posts: 70
Default

Quote:
Originally Posted by richy View Post
Great mod

I need this, but what happen if osticket gets an update?
Then you'll need to repatch that file, or you could use my SOAP MOD
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:07 AM.