X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_rt_ticket.html;h=7abc3e8cc3e30515def5e7be8e974740f16ebdda;hp=79a601b4bea8dd3fe063143036f4b2481a9ba6cd;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hpb=011fc73692cc02924be7f7d786a9a841d4cb2037 diff --git a/httemplate/search/report_rt_ticket.html b/httemplate/search/report_rt_ticket.html index 79a601b4b..7abc3e8cc 100644 --- a/httemplate/search/report_rt_ticket.html +++ b/httemplate/search/report_rt_ticket.html @@ -6,15 +6,23 @@ <% include ( '/elements/tr-input-beginning_ending.html' ) %> + <& /elements/tr-select.html, + label => 'Time category:', + field => 'category', + options => [ '', 'development', 'support' ], + option_labels => { '' => 'all' }, + curr_value => 'development', + &> + <% include ( '/elements/tr-select-otaker.html' ) %> - Account + Account: @@ -48,4 +56,17 @@ if ( @pkgparts ) { }); } +# get a list of TimeValue-type custom fields +my $CurrentUser = RT::CurrentUser->new(); +$CurrentUser->LoadByName($FS::CurrentUser::CurrentUser->username); +die "RT not configured" unless $CurrentUser->id; +my $CFs = RT::CustomFields->new($CurrentUser); + +$CFs->Limit(FIELD => 'LookupType', + OPERATOR => 'ENDSWITH', + VALUE => 'RT::Transaction'); + +$CFs->Limit(FIELD => 'Type', + VALUE => 'TimeValue'); +