From: ivan Date: Mon, 13 Feb 2012 03:43:21 +0000 (+0000) Subject: fix state droopdown not appearing for new voip innovations integrations, RT#15150 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f9924b31d40fddfeb1e0e176532440f551f50837 fix state droopdown not appearing for new voip innovations integrations, RT#15150 --- 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; + } }