diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-09-05 21:05:11 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-09-05 21:05:11 -0700 |
commit | cf14219879b437bd63e15b77b96f55103a645531 (patch) | |
tree | 3d0a4d15578d0b5dfef68f3d443588398678d6b1 /httemplate/edit/part_pkg.cgi | |
parent | 0191f49853fc8f1ff7c8a608600474bc23ffa69d (diff) | |
parent | 3f77bb21dfb560a6a91d828f7af9844f80d0d914 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/edit/part_pkg.cgi')
-rwxr-xr-x | httemplate/edit/part_pkg.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 7e67c833a..7f8a70710 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -888,11 +888,16 @@ my $html_bottom = sub { foreach my $field ( grep $_ !~ /^(setup|recur)_fee$/, @fields ) { - if(!exists($href->{$field})) { + if(!exists($href->{$field})) { # shouldn't happen warn "nonexistent part_pkg option: '$field'\n"; next; } + if ( exists($href->{$field}->{display_if}) ) { + my %args = ( 'plan' => $layer ); # anything else? + my $display = &{ $href->{$field}->{display_if} }(%args); + next if !$display; + } $html .= '<TR><TD ALIGN="right">'. $href->{$field}{'name'}. '</TD><TD>'; |