diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2016-06-29 10:02:46 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2016-06-29 10:02:46 -0700 |
| commit | cd254e04ba204b5d0b4a69b65c392fb175dd1e97 (patch) | |
| tree | 190d2e30a38eb56483d41b852dee7fdc53b3765d /httemplate/view/cust_main.cgi | |
| parent | 5e9be05e2abc350720b3c2031a8b7a0d39a226b8 (diff) | |
| parent | 84bc64eeaa9650333fbbb79ecb03a1aff4a347fd (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/view/cust_main.cgi')
| -rwxr-xr-x | httemplate/view/cust_main.cgi | 9 |
1 files changed, 9 insertions, 0 deletions
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'); |
