Extra two mods to do which are not included at the beginning of this post
The two file mods to include are as follows:
1. This is already mentioned in post #19 above but the file name is not clear. The file name is actually ticket-edit.inc.php as in...
\osticket\include\staff\ticket-edit.inc.php
Find the following code (starting about line Number 31):
<tr>
<td width="160" class="required">
Full Name:
</td>
<td>
<input type="text" size="50" name="name" id="name" value="<?php echo $info; ?>">
<span class="error">* <?php echo $errors; ?></span>
</td>
</tr>
And then add this code for company - substitute "company" for your own field name (insert at about line 40):
Mod for new field
<tr>
<td width="160" class="required">
Company:
</td>
<td>
<input type="text" size="50" name="company" id="company" value="<?php echo $info; ?>">
<span class="error">* <?php echo $errors; ?></font>
</td>
</tr>
End Mod for new field
2. \osticket\include\staff\ticket-open.inc.php
Find the following code (starting about line Number 38):
<tr>
<td width="160" class="required">
Full Name:
</td>
<td>
<input type="text" size="50" name="name" id="name" value="<?php echo $info; ?>">
<span class="error">* <?php echo $errors; ?></span>
</td>
</tr>
And then add this code for company - substitute "company" for your own field name (insert at about line 47):
Mod for new field
<tr>
<td width="160" class="required">
Company:
</td>
<td>
<input type="text" size="50" name="company" id="company" value="<?php echo $info; ?>">
<span class="error">* <?php echo $errors; ?></font>
</td>
</tr>
End Mod for new field
I am having the same problem though when I go back to a ticket and select edit so that I can put in the Company name or replace an existing Company:
Invalid Company (type not set)
Can anyone help?