X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main.cgi;h=c5ee9203c5535825e58112c88ed8abe9c64f3e4b;hb=53a8c81b4f3a414803a52fc8114b26a71055d012;hp=fac126f923cfc5205e76344289c57279ae599ec8;hpb=c72a0848224b544426eddec7c63186a5de04280e;p=freeside.git diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index fac126f92..c5ee9203c 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -262,6 +262,15 @@ $views{$conf->config('cust_main-custom_title') || emt('Custom')} = 'custom' my %viewname = reverse %views; my $view = $cgi->param('show') || $curuser->default_customer_view; + +if ($view eq 'last') { + # something took us away from the page and is now bouncing back + $view = get_page_pref('last_view', $custnum); +} else { + # remember which view is open so we _can_ bounce back + set_page_pref('last_view', $custnum, $view); +} + $view = 'basics' if $view eq 'jumbo'; my $ie_compat = $conf->config('ie-compatibility_mode');