fix display bug, RT#8524
[freeside.git] / httemplate / edit / part_pkg.cgi
index 538ba34..291e078 100755 (executable)
@@ -506,6 +506,12 @@ my $html_bottom = sub {
     #  $html .= ' SELECTED' if $freq eq $part_pkg->freq;
     #  $html .= ">$freq{$freq}";
     #}
+
+      if(!exists($href->{$field})) {
+        # shouldn't happen
+        warn "nonexistent part_pkg option: '$field'\n";
+        next;
+      }
     #$html .= '</SELECT></TD></TR>';
   
     my $href = $plans{$layer}->{'fields'};