From: Lebbeous Fogle-Weekley Date: Thu, 2 May 2013 19:00:31 +0000 (-0400) Subject: "Return to record" after submission of phone number on SMS page fixed X-Git-Tag: sprint4-merge-nov22~3081 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fd91f3a20da530e73fa639952576b91575cfc7fe;p=working%2FEvergreen.git "Return to record" after submission of phone number on SMS page fixed Before this, it only worked on the page load *before* form submission. There's probably a more elegant solution that doesn't involve keeping track of URIs, but this seems to me to work. Problem relayed to me by Dale Rigney at Equinox, who helped reproduce the issue and test a fix. Signed-off-by: Lebbeous Fogle-Weekley Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/SMS.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/SMS.pm index bdaaddb66e..63c0503f35 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/SMS.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/SMS.pm @@ -28,7 +28,7 @@ sub load_sms_cn { $ctx->{sms_notify} = $cgi->param('sms_notify'); $ctx->{copy_id} = $cgi->param('copy_id'); $ctx->{query} = $cgi->param('query'); - $ctx->{origin} = $cgi->param('origin'); + $ctx->{origin} = $cgi->param('origin') || $cgi->referer; my $acn_results = $e->json_query({ select => {