From fd91f3a20da530e73fa639952576b91575cfc7fe Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Thu, 2 May 2013 15:00:31 -0400 Subject: [PATCH] "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 --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/SMS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => { -- 2.43.2