RT 4.2.11, ticket#13852
[freeside.git] / rt / t / data / initialdata / transaction-cfs
1 use strict;
2 use warnings;
3
4 our @Queues = (
5     { Name  => "Blues" },
6     { Name  => "Purples" },
7 );
8
9 our @CustomFields = (
10     map +{
11         LookupType  => RT::Transaction->CustomFieldLookupType,
12         MaxValues   => 1,
13         Type        => "Freeform",
14         %$_
15     },
16     {   Name    => "Billable",
17         Type    => "Select",
18         Values  => [
19             { Name => "Yes", SortOrder => 1 },
20             { Name => "No",  SortOrder => 2 },
21         ],
22     },
23     {   Name    => "Who",
24         Type    => "SelectMultiple",
25         Values  => [
26             map +{ Name => $_ },
27                 "Facilities",
28                 "Information Technology",
29                 "Library",
30                 "Telecom",
31         ],
32     },
33     {   Name    => "When",
34         Type    => "Date",
35     },
36
37     # Two CFs named the same, but each applied to only one queue
38     # Note: Queue => ref forces RT::Handle to apply rather than
39     # RT::CustomField->Create; the former respects LookupType, the latter
40     # doesn't.
41     {   Name    => "Color",
42         Queue   => ["Blues"],
43     },
44     {   Name    => "Color",
45         Queue   => ["Purples"],
46     },
47
48     # Some ticket CFs to test mixed searches
49     {   Name        => "Location",
50         LookupType  => RT::Ticket->CustomFieldLookupType,
51     },
52 );