X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fmenu.html;h=65907339a2a50d9bffc6c47e4aa67b126fd721b7;hb=6ea605258e710562ce95153f031e80a4bfb04f83;hp=959a086201cd006fe46a822ded847404b6a85e39;hpb=b143ebbf9839934aebfdda61d988d55df6e34dc7;p=freeside.git diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html index 959a08620..65907339a 100644 --- a/httemplate/elements/menu.html +++ b/httemplate/elements/menu.html @@ -51,8 +51,9 @@ tie my %report_customers_lists, 'Tie::IxHash', 'by customer number' => [ $fsurl. 'search/cust_main.cgi?browse=custnum', '' ], 'by last name' => [ $fsurl. 'search/cust_main.cgi?browse=last', '' ], 'by company name' => [ $fsurl. 'search/cust_main.cgi?browse=company', '' ], - 'by active trouble tickets' => [ $fsurl. 'search/cust_main.cgi?browse=tickets', '' ], ; +$report_customers_lists{'by active trouble tickets'} = [ $fsurl. 'search/cust_main.cgi?browse=tickets', '' ] + if $conf->config('ticket_system'); tie my %report_customers_search, 'Tie::IxHash', 'by ordering employee' => [ $fsurl. 'search/cust_main-otaker.cgi' ], @@ -270,14 +271,17 @@ $config_menu{'Miscellaneous'} = [ \%config_misc, '' ] tie my %menu, 'Tie::IxHash', 'Billing Main' => [ $fsurl, 'Billing start page', ], - 'Ticketing Main' => [ - ( $conf->config('ticket_system') eq 'RT_External' - ? FS::TicketSystem->baseurl() - : $fsurl.'rt/' - ), - 'Ticketing start page', - ], ; +if ( $conf->config('ticket_system') ) { + $menu{'Ticketing Main'} = + [ + ( $conf->config('ticket_system') eq 'RT_External' + ? FS::TicketSystem->baseurl() + : $fsurl.'rt/' + ), + 'Ticketing start page', + ], +} $menu{'Reports'} = [ \%report_menu, 'Lists, reporting and graphing' ] if keys %report_menu; $menu{'Tools'} = [ \%tools_menu, 'Tools' ]