From 7c2e37568823941b026b990c4db3bccd413d2d6e Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Fri, 12 Jan 2018 15:36:13 -0500 Subject: RT# 78617 - fixed preference field customer_view_emails to only except whole numbers, also added redirection back to preference page after edit. --- httemplate/pref/pref-process.html | 1 + 1 file changed, 1 insertion(+) (limited to 'httemplate/pref/pref-process.html') diff --git a/httemplate/pref/pref-process.html b/httemplate/pref/pref-process.html index 75e57958f..96d301815 100644 --- a/httemplate/pref/pref-process.html +++ b/httemplate/pref/pref-process.html @@ -4,6 +4,7 @@ % } else { <% include('/elements/header.html', mt('Preferences updated')) %> <% include('/elements/footer.html') %> +<% $cgi->redirect(popurl(1). "pref.html?alert=Preferences updated" ) %> % } <%init> -- cgit v1.2.1 From 234cbf5b650cfd5616a81b55d86b8bbd0b23c558 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Fri, 12 Jan 2018 16:52:28 -0500 Subject: RT# 78617 - updated redirect to freeside_status to show update message --- httemplate/pref/pref-process.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'httemplate/pref/pref-process.html') diff --git a/httemplate/pref/pref-process.html b/httemplate/pref/pref-process.html index 96d301815..1b18d2ec8 100644 --- a/httemplate/pref/pref-process.html +++ b/httemplate/pref/pref-process.html @@ -1,10 +1,15 @@ % if ( $error ) { % $cgi->param('error', $error); -<% $cgi->redirect(popurl(1). "pref.html?". $cgi->query_string ) %> + <% $cgi->redirect(popurl(1). "pref.html?". $cgi->query_string ) %> % } else { -<% include('/elements/header.html', mt('Preferences updated')) %> -<% include('/elements/footer.html') %> -<% $cgi->redirect(popurl(1). "pref.html?alert=Preferences updated" ) %> + <% $cgi->redirect( -uri => popurl(1). "pref.html", + -cookie => CGI::Cookie->new( + -name => 'freeside_status', + -value => mt('Preferences updated'), + -expires => '+5m', + ), + ) + %> % } <%init> -- cgit v1.2.1