wiki:MultiSelectCustomFieldsPatch

Version 3 (modified by rjollos, 18 months ago) (diff)

Added syntax highlighting.

Multi-Select Custom Fields

Description

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.

Bugs/Feature Requests

Existing bugs and feature requests for MultiSelectCustomFieldsPatch are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out MultiSelectCustomFieldsPatch from here using Subversion, or browse the source with Trac.

Example

[ticket-custom]
foo = multi
foo.label = Foos
foo.options = |Bar|Baz

Recent Changes

[9666] by cmc on 2010-12-12 21:25:00
Updated patch for 0.12.1
[7616] by cmc on 2010-02-16 05:52:30
Initial Commit
[7615] by cmc on 2010-02-16 05:49:59
New hack MultiSelectCustomFieldsPatch, created by cmc

Author/Contributors

Author: cmc
Maintainer: cmc
Contributors: