projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d55204
)
whew, glad that change package bugfix was easy to find, closes: Bug#3241
author
ivan
<ivan>
Fri, 14 Mar 2008 08:13:32 +0000
(08:13 +0000)
committer
ivan
<ivan>
Fri, 14 Mar 2008 08:13:32 +0000
(08:13 +0000)
httemplate/edit/process/cust_pkg.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/cust_pkg.cgi
b/httemplate/edit/process/cust_pkg.cgi
index
0dc82a6
..
272ddcc
100755
(executable)
--- a/
httemplate/edit/process/cust_pkg.cgi
+++ b/
httemplate/edit/process/cust_pkg.cgi
@@
-36,11
+36,16
@@
if ( $cgi->param('action') eq 'change' ) { #came from misc/change_pkg.cgi
$action = 'change';
$error_redirect = "misc/change_pkg.cgi";
- @pkgparts = ($1);
die "access denied"
unless $curuser->access_right('Change customer package');
+ if ( $cgi->param('new_pkgpart') =~ /^(\d+)$/ ) {
+ @pkgparts = ($1);
+ } else {
+ $error = 'Select a new package';
+ }
+
} elsif ( $cgi->param('action') eq 'bulk' ) { #came from edit/cust_pkg.cgi
$action = 'bulk';