[freeside-commits] freeside/httemplate/view/cust_main/packages package.html, 1.3, 1.4
Ivan,,,
ivan at wavetail.420.am
Sun Mar 29 03:39:59 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages
In directory wavetail.420.am:/tmp/cvs-serv30989/packages
Modified Files:
package.html
Log Message:
avoid looking up part_pkg redundantly in the pkg loop, RT#5083
Index: package.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages/package.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- package.html 29 Mar 2009 10:34:20 -0000 1.3
+++ package.html 29 Mar 2009 10:39:57 -0000 1.4
@@ -38,7 +38,7 @@
%
% if ( $curuser->access_right('Customize customer package') ) {
% $br=1;
- ( <%pkg_customize_link($cust_pkg,$cust_pkg->custnum)%> )
+ ( <%pkg_customize_link($cust_pkg,$part_pkg)%> )
% }
%
<% $br ? '<BR>' : '' %>
@@ -198,9 +198,10 @@
sub pkg_customize_link {
my $cust_pkg = shift or return '';
+ my $part_pkg = shift;
my $custnum = $cust_pkg->custnum;
qq!<A HREF="${p}edit/part_pkg.cgi?!.
- "clone=". $cust_pkg->part_pkg->pkgpart. ';'.
+ "clone=". $part_pkg->pkgpart. ';'.
"pkgnum=". $cust_pkg->pkgnum.
qq!">Customize</A>!;
}
More information about the freeside-commits
mailing list