summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2012-02-13 03:43:22 +0000
committerivan <ivan>2012-02-13 03:43:22 +0000
commit73a8c653d4aefdea3b5f0f99b505719f3f0d3154 (patch)
treecc422f4713085844259db524669ac6c7beee9592 /httemplate
parent0778b3bb69417c4c9904e2e03a88524cfd162fb7 (diff)
fix state droopdown not appearing for new voip innovations integrations, RT#15150
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/elements/select-state.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/select-state.html b/httemplate/elements/select-state.html
index 785b2ec24..490dafa80 100644
--- a/httemplate/elements/select-state.html
+++ b/httemplate/elements/select-state.html
@@ -72,7 +72,9 @@ if ( $opt{'svcpart'} ) {
$sth->execute or die $sth->errstr;
my %avail_states = map { $_->[0] => 1 } @{ $sth->fetchall_arrayref };
- delete $states{$_} foreach grep ! $avail_states{$_}, keys %states;
+ if ( %avail_states ) {
+ delete $states{$_} foreach grep ! $avail_states{$_}, keys %states;
+ }
}
</%init>