diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-11-11 11:42:45 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-11-11 11:42:45 -0800 |
commit | 4afceb55388ffa32d18c2b821fda11027540dce5 (patch) | |
tree | 09a1635a519b3eee0f5f0b1b8253c39660258ba1 /httemplate/misc/unsusp_pkg.cgi | |
parent | 7118f8f027744b31c87444da0a47de3b1daa5da2 (diff) |
UX: add status to package actions, redirect back to package tab
Diffstat (limited to 'httemplate/misc/unsusp_pkg.cgi')
-rwxr-xr-x | httemplate/misc/unsusp_pkg.cgi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/httemplate/misc/unsusp_pkg.cgi b/httemplate/misc/unsusp_pkg.cgi index b350693dd..ad7effcb3 100755 --- a/httemplate/misc/unsusp_pkg.cgi +++ b/httemplate/misc/unsusp_pkg.cgi @@ -1,7 +1,16 @@ %if ( $error ) { % errorpage($error); %} else { -<% $cgi->redirect(popurl(2). "view/cust_main.cgi?".$cust_pkg->getfield('custnum')) %> +% my $cookie = CGI::Cookie->new( -name => 'freeside_status', +% -value => mt('Package unsuspended'), +% -expires => '+5m', +% ); +% #$r->headers_out->add( 'Set-Cookie' => $cookie->as_string ); +<% $cgi->redirect( + -uri => popurl(2). "view/cust_main.cgi?show=packages;custnum=".$cust_pkg->getfield('custnum'), + -cookie => $cookie + ) +%> %} <%init> |