diff options
| author | ivan <ivan> | 2006-09-18 02:21:08 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2006-09-18 02:21:08 +0000 | 
| commit | 6ea605258e710562ce95153f031e80a4bfb04f83 (patch) | |
| tree | 6f38a1a89887a8ca03a525ffac26efbcde3dded2 /httemplate/elements/menu.html | |
| parent | b143ebbf9839934aebfdda61d988d55df6e34dc7 (diff) | |
ticket system disableability for rainbowshops
Diffstat (limited to 'httemplate/elements/menu.html')
| -rw-r--r-- | httemplate/elements/menu.html | 20 | 
1 files 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' ] | 
