diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
commit | 9aee669886202be7035e6c6049fc71bc99dd3013 (patch) | |
tree | 2fd5bf6de74f3d99270587ffb1833e4188a6373d /rt/t/data/initialdata/transaction-cfs | |
parent | ac20214d38d9af00430423f147b5a0e50751b050 (diff) | |
parent | 1add633372bdca3cc7163c2ce48363fed3984437 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/t/data/initialdata/transaction-cfs')
-rw-r--r-- | rt/t/data/initialdata/transaction-cfs | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/rt/t/data/initialdata/transaction-cfs b/rt/t/data/initialdata/transaction-cfs new file mode 100644 index 000000000..25c8274ff --- /dev/null +++ b/rt/t/data/initialdata/transaction-cfs @@ -0,0 +1,52 @@ +use strict; +use warnings; + +our @Queues = ( + { Name => "Blues" }, + { Name => "Purples" }, +); + +our @CustomFields = ( + map +{ + LookupType => RT::Transaction->CustomFieldLookupType, + MaxValues => 1, + Type => "Freeform", + %$_ + }, + { Name => "Billable", + Type => "Select", + Values => [ + { Name => "Yes", SortOrder => 1 }, + { Name => "No", SortOrder => 2 }, + ], + }, + { Name => "Who", + Type => "SelectMultiple", + Values => [ + map +{ Name => $_ }, + "Facilities", + "Information Technology", + "Library", + "Telecom", + ], + }, + { Name => "When", + Type => "Date", + }, + + # Two CFs named the same, but each applied to only one queue + # Note: Queue => ref forces RT::Handle to apply rather than + # RT::CustomField->Create; the former respects LookupType, the latter + # doesn't. + { Name => "Color", + Queue => ["Blues"], + }, + { Name => "Color", + Queue => ["Purples"], + }, + + # Some ticket CFs to test mixed searches + { Name => "Location", + LookupType => RT::Ticket->CustomFieldLookupType, + }, +); |