Bugzilla – Attachment 100928 Details for
Bug 23808
Creating Child Guarantee doesn't populate Guarantor Information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23808: (follow-up) Display card number in 'Guarantor information' in memberentry.pl
Bug-23808-follow-up-Display-card-number-in-Guarant.patch (text/plain), 7.56 KB, created by
Alex Buckley
on 2020-03-18 00:08:14 UTC
(
hide
)
Description:
Bug 23808: (follow-up) Display card number in 'Guarantor information' in memberentry.pl
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2020-03-18 00:08:14 UTC
Size:
7.56 KB
patch
obsolete
>From 9ea20d92b542e9e7d5ba05c30ee59609a33c7e7c Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Tue, 17 Mar 2020 23:59:03 +0000 >Subject: [PATCH] Bug 23808: (follow-up) Display card number in 'Guarantor > information' in memberentry.pl > >Pre-fill guarantee contact details (email, phone) from guarantor record >when adding a gurantee to a guarantor's record > >Test plan: > >1. Apply first two patches and follow test plans > >2. On an adult's patron record (which has an primary phone >number, secondary phone, other phone, primary email, secondary email and >fax set) select 'Add a guarantee' and observe the guarantee's 'Contact' >section is not pre-filled with that information from the guarantor > >3. Apply this patch > >4. On the same adult's record select 'Add a guarantee' and observe that >the 'Primary phone', 'Secondary phone', 'Other phone', 'Primary email', >'Secondary email', 'Fax' have been pre-filled from the guarantor's >record > >5. Fill out the rest of the memberentry.pl and 'Save' and observe that those contact >details are successfully saved > >6. Repeat step 4 and alter the 'Primary phone' and 'Primary email' >fields and save and observe that those altered values are saved > >7. Run tests and confirm they pass: >sudo koha-shell <instancename> >prove xt >prove t > >Sponsored-by: South Taranaki District Council, NZ >--- > .../prog/en/modules/members/memberentrygen.tt | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 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 5a0e61a5f9..9cdc032200 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -552,7 +552,7 @@ > [% END %] > Guarantor surname: > </label> >- <input type="text" id="contactname" name="contactname" value="[% contactname | html %]" /> >+ <input type="text" id="contactname" name="contactname" value="[% patron.contactname | html %]" /> > [% IF ( mandatorycontactname ) %] > <span class="required">Required</span> > [% END %] >@@ -569,7 +569,7 @@ > [% END %] > Guarantor first name: > </label> >- <input type="text" id="contactfirstname" name="contactfirstname" value="[% contactfirstname | html %]" /> >+ <input type="text" id="contactfirstname" name="contactfirstname" value="[% patron.contactfirstname | html %]" /> > [% IF ( mandatorycontactfirstname ) %] > <span class="required">Required</span> > [% END %] >@@ -604,7 +604,7 @@ > [% END %] > Primary phone: > </label> >- <input type="text" id="phone" name="phone" value="[% phone | html %]" /> >+ <input type="text" id="phone" name="phone" value="[% patron.phone | html %]" /> > [% IF ( mandatoryphone ) %] > <span class="required">Required</span> > [% END %] >@@ -621,7 +621,7 @@ > [% END %] > Secondary phone: > </label> >- <input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" /> >+ <input type="text" id="phonepro" name="phonepro" value="[% patron.phonepro | html %]" /> > [% IF ( mandatoryphonepro ) %] > <span class="required">Required</span> > [% END %] >@@ -637,7 +637,7 @@ > [% END %] > Other phone: > </label> >- <input type="text" id="mobile" name="mobile" value="[% mobile | html %]" /> >+ <input type="text" id="mobile" name="mobile" value="[% patron.mobile | html %]" /> > [% IF ( mandatorymobile ) %] > <span class="required">Required</span> > [% END %] >@@ -653,7 +653,7 @@ > [% END %] > Primary email: > </label> >- <input type="text" id="email" name="email" size="45" value="[% email | html %]" /> >+ <input type="text" id="email" name="email" size="45" value="[% patron.email | html %]" /> > [% IF ( mandatoryemail ) %] > <span class="required">Required</span> > [% END %] >@@ -670,7 +670,7 @@ > [% END %] > Secondary email: > </label> >- <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" /> >+ <input type="text" id="emailpro" name="emailpro" size="45" value="[% patron.emailpro | html %]" /> > [% IF ( mandatoryemailpro ) %] > <span class="required">Required</span> > [% END %] >@@ -686,7 +686,7 @@ > [% END %] > Fax: > </label> >- <input type="text" id="fax" name="fax" value="[% fax | html %]" /> >+ <input type="text" id="fax" name="fax" value="[% patron.fax | html %]" /> > [% IF ( mandatoryfax ) %] > <span class="required">Required</span> > [% END %] >-- >2.11.0
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 23808
:
100839
|
100840
|
100841
|
100842
|
100844
|
100845
|
100889
|
100900
|
100925
|
100928
|
100929
|
100957
|
100958
|
101098
|
101099
|
101100
|
101101
|
105565