- Edited
I'm trying to create a filter that adds a custom attribute () to filtered tickets. Using v1.9.2 I've been able to create a Custom List () under Manage/Lists. I've added this to the Ticket Filters by editing the filter.inc.php file as shown below. The dropdown menu that is created does reference the correct SQL table as the I added to the Custom List populate the pulldown menu. When I create a filter and select one of the companies and click Save Changes it saves, but then that field is not actually saved - when I look at all the other fields the pulldown menus are still holding the attributes I selected and saved except the Company filter which is now blank.Any help you could provide would be greatly appreciated.Thank you!Here's the code I added to filter.inc.php right before the Help Topic entry in that file:<?php // Insert here to add company to the auto ticket assingment. This requires that a Custom List // with the Companies listed under Items has already been created in the osTicket web interface. ?> <tr> <td width="180"> Company: </td> <td> <select name="companyid"> <option value="">— Select Company —</option><?php $sql='SELECT id, value FROM `OST_LIST_ITEMS` ORDER by value'; if(($res=db_query($sql)) && db_num_rows($res)) { while(list($id,$value)=db_fetch_row($res)) { $selected=($info && $id==$info)? 'selected="selected"' : ''; echo sprintf('<option value="%s" %s>%s</option>',$id, $selected, $value); }}?> </select> <span class="error">* <?php echo $errors; ?></span><i class="help-tip icon-question-sign" href="#company_name"></i> </td> </tr>