From: Cesar Velez Date: Mon, 5 Feb 2018 22:45:22 +0000 (-0500) Subject: LP#1746815-Fix sticky hold url param X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fcesardv%2Flp1746815_fix_myopac_hold_edit_urlparam;p=working%2FEvergreen.git LP#1746815-Fix sticky hold url param Renamed the hold_id url param from "id" to "hid" and prevent it from sticking in url's where it not needed. Signed-off by: Cesar Velez --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index 8295e12b51..fa9ed15dcd 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -950,7 +950,7 @@ sub load_myopac_holds { my $limit = $self->cgi->param('limit') || 15; my $offset = $self->cgi->param('offset') || 0; my $action = $self->cgi->param('action') || ''; - my $hold_id = $self->cgi->param('id'); + my $hold_id = $self->cgi->param('hid'); my $available = int($self->cgi->param('available') || 0); my $hold_handle_result; diff --git a/Open-ILS/src/templates/opac/myopac/holds.tt2 b/Open-ILS/src/templates/opac/myopac/holds.tt2 index 5a0c3c41d0..d881d9f3a3 100644 --- a/Open-ILS/src/templates/opac/myopac/holds.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds.tt2 @@ -252,7 +252,7 @@ [%- END; END; %] - [% l('Edit') %] diff --git a/Open-ILS/src/templates/opac/parts/myopac/base.tt2 b/Open-ILS/src/templates/opac/parts/myopac/base.tt2 index 94259db309..15cf56e628 100644 --- a/Open-ILS/src/templates/opac/parts/myopac/base.tt2 +++ b/Open-ILS/src/templates/opac/parts/myopac/base.tt2 @@ -37,7 +37,7 @@ ELSE; cls_which = "acct-tab-off"; END -%] - [% page.name; %] [% END %] @@ -52,7 +52,7 @@ [% FOREACH page IN myopac_pages; IF page.url != myopac_page; %] - + [% ELSE; %] [% END; diff --git a/Open-ILS/src/templates/opac/parts/topnav.tt2 b/Open-ILS/src/templates/opac/parts/topnav.tt2 index e84fbca781..68fd3bb238 100644 --- a/Open-ILS/src/templates/opac/parts/topnav.tt2 +++ b/Open-ILS/src/templates/opac/parts/topnav.tt2 @@ -24,7 +24,7 @@ |