Bugzilla – Attachment 10719 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]
Bug 8392: Avoid having an untranslatable age range
0002-Bug-8392-Avoid-having-an-untranslatable-age-range.patch (text/plain), 1.91 KB, created by
Frédéric Demians
on 2012-07-09 15:53:01 UTC
(
hide
)
Description:
Bug 8392: Avoid having an untranslatable age range
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2012-07-09 15:53:01 UTC
Size:
1.91 KB
patch
obsolete
>From c158a7bc2be5e90580f7c7634171549ea89559e0 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 2/2] Bug 8392: Avoid having an untranslatable age range > >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? >--- > koha-tmpl/intranet-tmpl/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.11.1 >
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