X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pkg.cgi;h=485d601eb58ec5277f04a41961a5b618e71c3689;hp=7fb88c3ceb78b175e9b14b85ac0d9734fe73432e;hb=5d154e4e153a66c2349ee0c6ca942fa017bfb139;hpb=22a35047ecdffff80110e06cc08fc84f9ddba9b0 diff --git a/httemplate/edit/cust_pkg.cgi b/httemplate/edit/cust_pkg.cgi index 7fb88c3ce..485d601eb 100755 --- a/httemplate/edit/cust_pkg.cgi +++ b/httemplate/edit/cust_pkg.cgi @@ -1,8 +1,18 @@ + <% my %pkg = (); my %comment = (); -foreach (qsearch('part_pkg', { 'disabled' => '' })) { +my %all_pkg = (); +my %all_comment = (); +#foreach (qsearch('part_pkg', { 'disabled' => '' })) { +# $pkg{ $_ -> getfield('pkgpart') } = $_->getfield('pkg'); +# $comment{ $_ -> getfield('pkgpart') } = $_->getfield('comment'); +#} +foreach (qsearch('part_pkg', {} )) { + $all_pkg{ $_ -> getfield('pkgpart') } = $_->getfield('pkg'); + $all_comment{ $_ -> getfield('pkgpart') } = $_->getfield('comment'); + next if $_->disabled; $pkg{ $_ -> getfield('pkgpart') } = $_->getfield('pkg'); $comment{ $_ -> getfield('pkgpart') } = $_->getfield('comment'); } @@ -45,7 +55,7 @@ END my($pkgnum,$pkgpart)=( $_->getfield('pkgnum'), $_->getfield('pkgpart') ); print qq!$pkgnum: $pkg{$pkgpart} - $comment{$pkgpart}\n!; + print qq!>$pkgnum: $all_pkg{$pkgpart} - $all_comment{$pkgpart}\n!; $count ++ ; if ($count == 2) {