|Version 1 (modified by cmc, 7 years ago) (diff)|
Multi-Select Custom Fields
This patch allows for multi-select custom fields. They use the same syntax as normal select fields (including '|Option1|Option2' to allow for null values), but display as lists and multi-selects in the ticket profile.
This patch tries not to mangle core too much, opting to store Multi-Selects in the database as a pipe-delimited string (e.g. 'Option1|Option2|Option3|'). It uses some magic to display the fields correctly within the ticket profile and in reports. This patch also makes 'contains' work correctly when using TicketQueries by using the pipe ('|') character.
If you have any issues, create a new ticket.
Download the zipped source from [download:multiselectcustomfieldspatch here].
foo = multi
foo.label = Foos
foo.options = |Bar|Baz