Bugzilla – Attachment 27517 Details for
Bug 12133
Guarantor requirements when registering a patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add two requirements when registering a new patron
0001-Add-two-requirements-when-registering-a-new-patron.patch (text/plain), 2.17 KB, created by
paxed
on 2014-04-24 06:12:28 UTC
(
hide
)
Description:
Add two requirements when registering a new patron
Filename:
MIME Type:
Creator:
paxed
Created:
2014-04-24 06:12:28 UTC
Size:
2.17 KB
patch
obsolete
>From 68fbd4465d2a6413cbdd06f33027c9cbdc4fa567 Mon Sep 17 00:00:00 2001 >From: Pasi Kallinen <pasi.kallinen@pttk.fi> >Date: Thu, 24 Apr 2014 09:02:51 +0300 >Subject: [PATCH] Add two requirements when registering a new patron: > >- A child patron must have a guarantor. >- A guarantor cannot be a guarantee. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 6 ++++++ > members/memberentry.pl | 4 ++++ > 2 files changed, 10 insertions(+) > >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 694432e..2c86a04 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -175,6 +175,12 @@ > <div class="dialog alert"> > <p>The following fields are wrong. Please fix them.</p> > <ul> >+ [% IF ( ERROR_child_no_guarantor ) %] >+ <li id="ERROR_child_no_guarantor">A child patron needs a guarantor.</li> >+ [% END %] >+ [% IF ( ERROR_guarantor_is_guarantee ) %] >+ <li id="ERROR_guarantor_is_guarantee">A guarantor cannot be a guarantee.</li> >+ [% END %] > [% IF ( ERROR_login_exist ) %] > <li id="ERROR_login_exist">Username/password already exists.</li> > [% END %] >diff --git a/members/memberentry.pl b/members/memberentry.pl >index ff92447..70650fd 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -262,9 +262,13 @@ if ( $guarantorid and ( $category_type eq 'C' || $category_type eq 'P' )) { > $newdata{$_} = $guarantordata->{$_}; > } > } >+ >+ push @errors, 'ERROR_guarantor_is_guarantee' if ( $guarantordata->{'guarantorid'} ); > } > } > >+push @errors, 'ERROR_child_no_guarantor' if ( $category_type eq 'C' && !$guarantorid ); >+ > ###############test to take the right zipcode, country and city name ############## > # set only if parameter was passed from the form > $newdata{'city'} = $input->param('city') if defined($input->param('city')); >-- >1.8.3.2 >
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 12133
:
27517
|
27584
|
33459
|
91482
|
94371
|
94538
|
94544
|
99629
|
113099
|
113100
|
134013
|
134014
|
134015
|
146827
|
147440
|
148058
|
148070
|
152706
|
153082
|
153154
|
154300
|
154316
|
156387
|
156446
|
156447
|
158344
|
158345
|
158346
|
158919
|
158979