Allow passing of 'allow_pkgpart' and 'import' flags up the chain to FS::cust_pkg...
[freeside.git] / httemplate / misc / do_not_change_pkg.cgi
1 %if ( $error ) {
2 %  errorpage($error);
3 %} else {
4 <% $cgi->redirect(popurl(2). "view/cust_main.cgi?".$cust_pkg->getfield('custnum')) %>
5 %}
6 <%init>
7
8 die "access denied"
9   unless $FS::CurrentUser::CurrentUser->access_right('Change customer package');
10
11 #untaint pkgnum
12 my ($query) = $cgi->keywords;
13 $query =~ /^(\d+)$/ || die "Illegal pkgnum";
14 my $pkgnum = $1;
15
16 my $cust_pkg = qsearchs('cust_pkg',{'pkgnum'=>$pkgnum});
17
18 my $error = $cust_pkg->abort_change;
19
20 </%init>