diff options
| author | Mark Wells <mark@freeside.biz> | 2015-07-13 17:26:48 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2015-07-14 13:25:05 -0700 |
| commit | 98f6d91ec7eaa907204afbfeb90ede1e3bff656d (patch) | |
| tree | e5d7b870c4965f9a2b580e3cad5aed82d300e5c8 /httemplate/view/cust_main/packages/section.html | |
| parent | 57e3a0e08b81d52851314c60f37115a05b9be79e (diff) | |
automatic package changes for supplemental packages, #37102
Diffstat (limited to 'httemplate/view/cust_main/packages/section.html')
| -rwxr-xr-x | httemplate/view/cust_main/packages/section.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/httemplate/view/cust_main/packages/section.html b/httemplate/view/cust_main/packages/section.html index fe9f283c7..490f09c12 100755 --- a/httemplate/view/cust_main/packages/section.html +++ b/httemplate/view/cust_main/packages/section.html @@ -71,9 +71,11 @@ <& .packagerow, $cust_pkg->change_to_pkg, %iopt, 'change_from' => 1 &> % } % # include supplemental packages if any -% $iopt{'supplemental'} = ($iopt{'supplemental'} || 0) + 1; -% foreach my $supp_pkg ($cust_pkg->supplemental_pkgs) { - <& .packagerow, $supp_pkg, %iopt &> +% if ( $cust_pkg->_supplemental ) { +% $iopt{'supplemental'} = ($iopt{'supplemental'} || 0) + 1; +% foreach my $supp_pkg (@{ $cust_pkg->_supplemental }) { + <& .packagerow, $supp_pkg, %iopt &> +% } % } </%def> <%shared> |
