blob: 7afc9f2bbc67eb2de2bfc55545f22ac462ade59e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
%
%
%#untaint custnum
%$cgi->param('custnum') =~ /^(\d+)$/
% or die 'illegal custnum '. $cgi->param('custnum');
%my $custnum = $1;
%$cgi->param('pkgpart') =~ /^(\d+)$/
% or die 'illegal pkgpart '. $cgi->param('pkgpart');
%my $pkgpart = $1;
%
%my @cust_pkg = ();
%my $error = FS::cust_pkg::order($custnum, [ $pkgpart ], [], \@cust_pkg, );
%
%if ($error) {
%
<!-- mason kludge -->
%
% eidiot($error);
%} else {
% print $cgi->redirect(popurl(3). "view/cust_main.cgi?$custnum".
% "#cust_pkg". $cust_pkg[0]->pkgnum );
%}
%
%
|