[freeside-commits] freeside/httemplate/browse part_pkg.cgi, 1.58, 1.59
Mark Wells
mark at wavetail.420.am
Tue Nov 2 17:33:26 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv6447/httemplate/browse
Modified Files:
part_pkg.cgi
Log Message:
bulk change package type, RT#9947
Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/part_pkg.cgi,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -w -d -r1.58 -r1.59
--- part_pkg.cgi 22 Oct 2010 08:54:32 -0000 1.58
+++ part_pkg.cgi 3 Nov 2010 00:33:24 -0000 1.59
@@ -32,6 +32,7 @@
my $acl_edit_global = $curuser->access_right($edit_global);
my $acl_config = $curuser->access_right('Configuration'); #to edit services
#and agent types
+ #and bulk change
die "access denied"
unless $acl_edit || $acl_edit_global;
@@ -326,7 +327,7 @@
my $cust_pkg_link = $p. 'search/cust_pkg.cgi?pkgpart=';
push @fields, sub { my $part_pkg = shift;
[
- map {
+ map( {
my $magic = $_;
my $label = $_;
if ( $magic eq 'active' && $part_pkg->freq == 0 ) {
@@ -360,7 +361,23 @@
},
],
} (qw( not_yet_billed active suspended cancelled ))
- ]; };
+ ),
+ ($acl_config ?
+ [ {},
+ { 'data' => '<FONT SIZE="-1">[ '.
+ include('/elements/popup_link.html',
+ 'label' => 'change',
+ 'action' => "${p}edit/bulk-cust_pkg.html?".
+ 'pkgpart='.$part_pkg->pkgpart,
+ 'actionlabel' => 'Change Packages',
+ 'width' => 569,
+ 'height' => 210,
+ ).' ]</FONT>',
+ 'align' => 'left',
+ }
+ ] : () ),
+ ];
+ };
$align .= 'r';
#}
More information about the freeside-commits
mailing list