RT#37488: Tower/sector selection box is showing disabled towers [removed disabled...
authorJonathan Prykop <jonathan@freeside.biz>
Sun, 20 Sep 2015 01:32:00 +0000 (20:32 -0500)
committerJonathan Prykop <jonathan@freeside.biz>
Tue, 29 Sep 2015 06:09:43 +0000 (01:09 -0500)
httemplate/elements/select-tower_sector.html

index 458bcdd..76ff252 100644 (file)
@@ -2,6 +2,8 @@
 <& /elements/select-table.html,
     table       => 'tower_sector',
     name_col    => 'description',
+    addl_from   => 'JOIN tower USING (towernum)',
+    extra_sql   => q(WHERE disabled = '' OR disabled IS NULL),
     order_by    => 'ORDER BY towernum,sectorname',
     empty_label => ' ',
     @_