summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/bulk-part_pkg-fcc.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-02-18 15:50:51 -0800
committerMark Wells <mark@freeside.biz>2015-02-18 15:50:51 -0800
commit53a39f74f4735253591e6df083522b3a3bbacd6d (patch)
tree4cff541f1f151787935effc23fea58355dd09ae3 /httemplate/edit/process/bulk-part_pkg-fcc.html
parente11f3188435b30c193fd1443913ed77953e14dea (diff)
in FCC options editor, jump back to correct page after submitting, #32638
Diffstat (limited to 'httemplate/edit/process/bulk-part_pkg-fcc.html')
-rw-r--r--httemplate/edit/process/bulk-part_pkg-fcc.html12
1 files changed, 8 insertions, 4 deletions
diff --git a/httemplate/edit/process/bulk-part_pkg-fcc.html b/httemplate/edit/process/bulk-part_pkg-fcc.html
index 8ef330829..d060a242e 100644
--- a/httemplate/edit/process/bulk-part_pkg-fcc.html
+++ b/httemplate/edit/process/bulk-part_pkg-fcc.html
@@ -17,7 +17,7 @@
% }
<% $cgi->redirect($fsurl.'browse/part_pkg-fcc.html?redirect='.$session) %>
% } else {
-<% $cgi->redirect($fsurl.'browse/part_pkg-fcc.html?classnum='.$classnum.$jump) %>
+<% $cgi->redirect($dest) %>
% }
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;
@@ -38,10 +38,14 @@ foreach my $param ($cgi->param) {
$error{$pkgpart} = $error if $error;
}
-my $classnum = $cgi->param('classnum');
+my $dest = $fsurl.'browse/part_pkg-fcc.html?';
+foreach (qw(classnum maxrecords offset)) {
+ if ( $cgi->param($_) =~ /^(\d+)$/ ) {
+ $dest .= "$_=$1;";
+ }
+}
-my $jump = '';
if ( $cgi->param('jump') =~ /^pkgpart(\d+)$/ ) {
- $jump = '#'.$1;
+ $dest .= "#$1";
}
</%init>