Bugzilla – Attachment 56987 Details for
Bug 17492
Show warning if patron's age is out of category limits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17492: Removed a line setting 'flagged' template parameter by mistake
Bug-17492-Removed-a-line-setting-flagged-template-.patch (text/plain), 1.46 KB, created by
Radek Šiman (R-Bit Technology, s.r.o.)
on 2016-10-31 10:18:35 UTC
(
hide
)
Description:
Bug 17492: Removed a line setting 'flagged' template parameter by mistake
Filename:
MIME Type:
Creator:
Radek Šiman (R-Bit Technology, s.r.o.)
Created:
2016-10-31 10:18:35 UTC
Size:
1.46 KB
patch
obsolete
>From 88362b9bc58e31af305219224c2511ed56c26b82 Mon Sep 17 00:00:00 2001 >From: radiuscz <radek.siman@centrum.cz> >Date: Mon, 24 Oct 2016 03:51:35 +0200 >Subject: [PATCH] Bug 17492: 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 > >Signed-off-by: Marc Véron <veron@veron.ch> >--- > members/moremember.pl | 1 - > 1 file changed, 1 deletion(-) > >diff --git a/members/moremember.pl b/members/moremember.pl >index 1c7ed7b..14021d9 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -243,7 +243,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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17492
:
56805
|
56806
|
56874
|
56933
|
56934
|
56935
|
56936
|
56937
|
56976
|
56985
|
56986
|
56987
|
56988
|
56989
|
56990
|
56995
|
62860
|
67040
|
67041
|
67042
|
67850
|
67851
|
67867
|
67868
|
68139
|
68140
|
68141
|
68142
|
68143
|
68144
|
68145
|
91028
|
91029
|
91044
|
91045
|
91098
|
91099
|
91100