X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Freport_rt_ticket.html;h=7abc3e8cc3e30515def5e7be8e974740f16ebdda;hp=f0d7a42006ed4083da7c1ac6fba992ab72cabb8d;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500 diff --git a/httemplate/search/report_rt_ticket.html b/httemplate/search/report_rt_ticket.html index f0d7a4200..7abc3e8cc 100644 --- a/httemplate/search/report_rt_ticket.html +++ b/httemplate/search/report_rt_ticket.html @@ -6,15 +6,13 @@ <% include ( '/elements/tr-input-beginning_ending.html' ) %> - <& /elements/tr-td-label.html, label => 'Time category:' &> - - <& /elements/select-rt-customfield.html, - name => 'cfname', - lookuptype => 'RT::Transaction', - valuetype => 'TimeValue', - empty_label => 'Worked', + <& /elements/tr-select.html, + label => 'Time category:', + field => 'category', + options => [ '', 'development', 'support' ], + option_labels => { '' => 'all' }, + curr_value => 'development', &> - <% include ( '/elements/tr-select-otaker.html' ) %> @@ -24,7 +22,7 @@ @@ -59,7 +57,6 @@ if ( @pkgparts ) { } # get a list of TimeValue-type custom fields -RT::Init(); my $CurrentUser = RT::CurrentUser->new(); $CurrentUser->LoadByName($FS::CurrentUser::CurrentUser->username); die "RT not configured" unless $CurrentUser->id; @@ -72,10 +69,4 @@ $CFs->Limit(FIELD => 'LookupType', $CFs->Limit(FIELD => 'Type', VALUE => 'TimeValue'); -my @time_fields = ('', 'Worked'); -while (my $CF = $CFs->Next) { - push @time_fields, $CF->Name, ($CF->Description || $CF->Name); -} - -