clean up various other RT initialization inconsistancy, RT#18719
authorIvan Kohler <ivan@freeside.biz>
Tue, 14 Aug 2012 06:56:59 +0000 (23:56 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 14 Aug 2012 06:56:59 +0000 (23:56 -0700)
httemplate/elements/select-rt-customfield.html
httemplate/misc/timeworked.html
httemplate/search/report_rt_ticket.html

index 7a45bb1..85758d5 100644 (file)
@@ -3,9 +3,6 @@
 <OPTION VALUE="<% shift @fields %>"><% shift @fields %></OPTION>
 % }
 </SELECT>
-<%once>
-RT::Init();
-</%once>
 <%init>
 my %opt = @_;
 my $lookuptype = $opt{lookuptype};
index 672fad8..e439282 100755 (executable)
@@ -99,8 +99,6 @@ my(%ticketmap, %ticket, %customers);
 my $title = 'Assign Time Worked';
 tie %ticketmap, 'Tie::IxHash';
 
-RT::Init();
-
 my $CurrentUser = RT::CurrentUser->new();
 $CurrentUser->LoadByName($FS::CurrentUser::CurrentUser->username);
 
index f0d7a42..a4ceaa6 100644 (file)
@@ -59,7 +59,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;