From c79108e495951efca4824d458b3736deb4c79de9 Mon Sep 17 00:00:00 2001 From: Petro Vashchuk Date: Wed, 6 May 2020 16:09:01 +0300 Subject: [PATCH] Bug 25301: removed useless URI parameter "categorycode" from template Both "Edit details" links were sending empty query parameter "categorycode" as there is no such template parameter in "moremember.pl" defined at all, because template code block looks copy-pasted from "circulation.tt". This patch removes the parameter from "moremember.tt" template. To test: 1) You need to create or find expired or expiring patron. 2) Head to patron details page of that patron. 3) Inspect both "Edit details" links: one in the notification about expiration and other one in the "Expiration date:" field. 4) Observe empty parameter "categorycode=" in those links. 5) Apply patch. 6) Repeat step 3. 7) Check that there's no "categorycode=" in the links anymore. Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/members/moremember.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index fe2e7afdbc..0ead534ca2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -140,13 +140,13 @@ [% ELSE %] Patron's card has expired. [% END %] - Renew or Edit details + Renew or Edit details [% ELSIF ( patron.is_going_to_expire ) %]
  • Expiration: Patron's card will expire soon. Patron's card expires on [% patron.dateexpiry | $KohaDates %] - Renew or Edit details + Renew or Edit details
  • [% END %] @@ -466,12 +466,12 @@ [% patron.dateexpiry | $KohaDates %] Expired - Renew or Edit details + Renew or Edit details [% ELSIF ( patron.is_going_to_expire ) %] [% patron.dateexpiry | $KohaDates %] Patron expires soon - Renew or Edit details + Renew or Edit details [% ELSE %] [% patron.dateexpiry | $KohaDates %] [% END %] -- 2.39.5