Bugzilla – Attachment 10983 Details for
Bug 8392
Memberentry is not enforcing birthdate restrictions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8392: Avoid having an untranslatable age range
0001-SIGNED-OFF-Bug-8392-Avoid-having-an-untranslatable-a.patch (text/plain), 1.99 KB, created by
Owen Leonard
on 2012-07-18 15:12:07 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8392: Avoid having an untranslatable age range
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-07-18 15:12:07 UTC
Size:
1.99 KB
patch
obsolete
>From 26db0b66dc91bf037166edc4bceb1aa418543646 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Mon, 9 Jul 2012 17:45:11 +0200 >Subject: [PATCH] [SIGNED-OFF] Bug 8392: Avoid having an untranslatable age > range >Content-Type: text/plain; charset="utf-8" > >Currently, error message reports an age range in English. For example '0 to >17'. With this patch, the 'to' is not in the .pl file anymore. > >Ruth could you sign-off this fix? > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/members/memberentrygen.tt | 2 +- > members/memberentry.pl | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 1f28b04..60e4580 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -168,7 +168,7 @@ > [% END %] > [% IF ( ERROR_age_limitations ) %] > <li id="ERROR_age_limitations">Patron's age is incorrect for their category. >- Ages allowed are [% ERROR_age_limitations %].</li> >+ Ages allowed are [% age_low %]-[% age_high %].</li> > [% END %] > [% IF ( ERROR_branch ) %] > <li id="ERROR_branch">Library is invalid.</li> >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 0cf5485..2a39110 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -272,7 +272,8 @@ if ($op eq 'save' || $op eq 'insert'){ > my ($low,$high) = ($borrowercategory->{'dateofbirthrequired'}, $borrowercategory->{'upperagelimit'}); > if (($high && ($age > $high)) or ($age < $low)) { > push @errors, 'ERROR_age_limitations'; >- $template->param('ERROR_age_limitations' => "$low to $high"); >+ $template->param( age_low => $low); >+ $template->param( age_high => $high); > } > } > >-- >1.7.9.5 >
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 8392
:
10715
|
10718
|
10719
| 10983