From f9924b31d40fddfeb1e0e176532440f551f50837 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 13 Feb 2012 03:43:21 +0000 Subject: [PATCH] fix state droopdown not appearing for new voip innovations integrations, RT#15150 --- httemplate/elements/select-state.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; + } } -- 2.11.0