From dd75f50291b71d7e8975cbd0c9eb3d4d0797f9bc Mon Sep 17 00:00:00 2001 From: radiuscz Date: Mon, 24 Oct 2016 03:51:35 +0200 Subject: [PATCH] Removed a line setting 'flagged' template parameter by mistake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test plan: 1) Apply patch 2) Create a patron and assign him a category having age limits set 3) Change patron's age to be older/younger than category's limits 4) At "Check out" and "Details" tabs you should see a warning with a button allowing to change the category 5) Set a valid category according to patron's age 6) Warning should disappear 7) Perform similar test again, but instead of changing the age change the limits of a category https://bugs.koha-community.org/show_bug.cgi?id=17492 Signed-off-by: Marc VĂ©ron --- members/moremember.pl | 1 - 1 file changed, 1 deletion(-) diff --git a/members/moremember.pl b/members/moremember.pl index 4a4bb9b..d5a25f0 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -244,7 +244,6 @@ $template->param( age => $age ); my $borrowercategory = Koha::Patron::Categories->find($data->{ 'categorycode' }); my ($low,$high) = ($borrowercategory->dateofbirthrequired, $borrowercategory->upperagelimit); if (($high && ($age > $high)) or ($age < $low)) { - $template->param( flagged => 1 ); $template->param( age_limitations => 1 ); $template->param( age_low => $low ); $template->param( age_high => $high ); -- 2.1.4