This is the MOD for the much requested "Allow user to select department"...

Open $TICKETS_HOME/open.php
Remove $_POST= (only this, not the rest of the line)
Open $TICKETS_HOME/include/client/open.inc.php
Before the Subject insert the following:
<tr>
<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)?'selected':''; ?>
<option value="<?=$deptId?>"<?=$selected?>><?=$dept?></option>
<?
}?>
</select>
<font class="error"><b>*</b> <?=$errors?></font>
</td>
</tr>
I have tested this on my own system and it seems to work fine. Assigning a Help Topic will not assign the dept however. If the user does not select a dept then it will default to the 'Support' dept.
Please let me know if you run into any issues.