• Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp

osTicket> Allow clients to assign department

Oct26
2010
Written by Scott Rowley

This is the MOD for the much requested “Allow user to select department”…

Open $TICKETS_HOME/open.php
Remove

$_POST['deptId']=

(only this, not the rest of the line)

Open $TICKETS_HOME/include/client/open.inc.php
Before the Subject
insert the following:

<td align="left"><b>Department:</b></td>
<td>
<select name="deptId">
<option value="" selected >Select Department</option>
<?
$services= db_query('SELECT dept_id,dept_name FROM '.DEPT_TABLE.' ORDER BY dept_name');
while (list($deptId,$dept) = db_fetch_row($services)){
$selected = ($info['deptId']==$deptId)?'selected':''; ?>
<option value="<?=$deptId?>"<?=$selected?>><?=$dept?></option>
<?
}?>
</select>
&nbsp;<font class="error"><b>*</b>&nbsp;<?=$errors['deptId']?></font>
</td>
</tr>
Posted in osTicket - Tagged department, mod, modification, osTicket, ticket
« Web Dev> CGI-based redirect
» BASH> Tail multiple files & highlight

5 Comments

  1. Arvind Amarnath J's Gravatar Arvind Amarnath J
    August 25, 2011 at 2:39 pm

    Superb….. 😉 was trying to get this fixed from a very long time…

    At Last.. Got it fixed… thank you so much….

  2. Mohammad Awni's Gravatar Mohammad Awni
    December 4, 2011 at 3:34 am

    Many Thanks…you saved my day

  3. deelss's Gravatar deelss
    January 2, 2012 at 5:59 pm

    Hi,

    why now the client can see the private department as well?

    can i make the private dept. private?

    tahnks

    • Scott Rowley's Gravatar Scott Rowley
      January 2, 2012 at 8:30 pm

      Ahhh, yea — I don’t use private departments so I never thought about it. I’ll update the code to check for only public depts and then reply here again so you know.

  4. Jason's Gravatar Jason
    July 24, 2012 at 7:32 am

    Hi Scott

    Hi Peeps

    I have not tried every MySql tool to assist me to get better reporting or more detailed reporting for osticket but no luck.

    I would like to ask if there is anyone who has created there own reporting script to suite there business needs , if yes please respond to this thread or contact me on jason.kleinhans[at]gmail[dot]com

    what i would like to see is the following in my reports:

    Tickets per department: let me give an example , tickets per deparment must not give me just figures i need detail. it must show me

    TicketID | Department | Helptopic | Subject | ticket count , for the month , year , day and week.

    and so i need the same for Tickets Per Staff , Tickets Per Client , Tickets Per HelpTopic

    the detail will differ from report to report for the Ticket per Helptopic i need to know how many Networking or Application tickets did we receive per month , day , week and year and within this reports i need to have the staff list who worked on the ticket and when it was created and when it was closed

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Advertisement

Sudo Bash
By Geeks - For Geeks

Back to Top