projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typo
[freeside.git]
/
httemplate
/
edit
/
part_pkg.cgi
diff --git
a/httemplate/edit/part_pkg.cgi
b/httemplate/edit/part_pkg.cgi
index
538ba34
..
6ef8dd8
100755
(executable)
--- a/
httemplate/edit/part_pkg.cgi
+++ b/
httemplate/edit/part_pkg.cgi
@@
-506,7
+506,8
@@
my $html_bottom = sub {
# $html .= ' SELECTED' if $freq eq $part_pkg->freq;
# $html .= ">$freq{$freq}";
#}
# $html .= ' SELECTED' if $freq eq $part_pkg->freq;
# $html .= ">$freq{$freq}";
#}
- #$html .= '</SELECT></TD></TR>';
+
+ #$html .= '</SELECT></TD></TR>';
my $href = $plans{$layer}->{'fields'};
my @fields = exists($plans{$layer}->{'fieldorder'})
my $href = $plans{$layer}->{'fields'};
my @fields = exists($plans{$layer}->{'fieldorder'})
@@
-515,6
+516,12
@@
my $html_bottom = sub {
foreach my $field ( grep $_ !~ /^(setup|recur)_fee$/, @fields ) {
foreach my $field ( grep $_ !~ /^(setup|recur)_fee$/, @fields ) {
+ if(!exists($href->{$field})) {
+ # shouldn't happen
+ warn "nonexistent part_pkg option: '$field'\n";
+ next;
+ }
+
$html .= '<TR><TD ALIGN="right">'. $href->{$field}{'name'}. '</TD><TD>';
my $format = sub { shift };
$html .= '<TR><TD ALIGN="right">'. $href->{$field}{'name'}. '</TD><TD>';
my $format = sub { shift };