From 6ea605258e710562ce95153f031e80a4bfb04f83 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 18 Sep 2006 02:21:08 +0000 Subject: [PATCH] ticket system disableability for rainbowshops --- httemplate/elements/menu.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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' ] -- 2.11.0