projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add dsl, circuit and fiber services to email and RT ticket exports, RT#84345
[freeside.git]
/
httemplate
/
elements
/
select-tower_sector.html
diff --git
a/httemplate/elements/select-tower_sector.html
b/httemplate/elements/select-tower_sector.html
index
76ff252
..
4dfd23d
100644
(file)
--- a/
httemplate/elements/select-tower_sector.html
+++ b/
httemplate/elements/select-tower_sector.html
@@
-3,7
+3,7
@@
table => 'tower_sector',
name_col => 'description',
addl_from => 'JOIN tower USING (towernum)',
table => 'tower_sector',
name_col => 'description',
addl_from => 'JOIN tower USING (towernum)',
- extra_sql =>
q(WHERE disabled = '' OR disabled IS NULL)
,
+ extra_sql =>
$extra_sql
,
order_by => 'ORDER BY towernum,sectorname',
empty_label => ' ',
@_
order_by => 'ORDER BY towernum,sectorname',
empty_label => ' ',
@_
@@
-67,4
+67,7
@@
foreach my $towernum (keys %sectors_of) {
}
my $empty_label = $opt{'empty_label'} || 'Include services with no sector';
}
my $empty_label = $opt{'empty_label'} || 'Include services with no sector';
+
+my $extra_sql = q(WHERE (disabled = '' OR disabled IS NULL));
+$extra_sql .= q( AND sectorname != '_default') if $opt{'sectorsonly'};
</%init>
</%init>