From 614f4bf8a0ee2bb6c5e54e2eb8e835fc8a8ad124 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Tue, 17 Mar 2020 23:59:03 +0000 Subject: [PATCH] Bug 23808: (follow-up) Pre-fill guarantee's contact details from guarantor patron 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 prove xt prove t Sponsored-by: South Taranaki District Council, NZ Signed-off-by: Andreas Roussos --- .../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: - + [% IF ( mandatorycontactname ) %] Required [% END %] @@ -569,7 +569,7 @@ [% END %] Guarantor first name: - + [% IF ( mandatorycontactfirstname ) %] Required [% END %] @@ -604,7 +604,7 @@ [% END %] Primary phone: - + [% IF ( mandatoryphone ) %] Required [% END %] @@ -621,7 +621,7 @@ [% END %] Secondary phone: - + [% IF ( mandatoryphonepro ) %] Required [% END %] @@ -637,7 +637,7 @@ [% END %] Other phone: - + [% IF ( mandatorymobile ) %] Required [% END %] @@ -653,7 +653,7 @@ [% END %] Primary email: - + [% IF ( mandatoryemail ) %] Required [% END %] @@ -670,7 +670,7 @@ [% END %] Secondary email: - + [% IF ( mandatoryemailpro ) %] Required [% END %] @@ -686,7 +686,7 @@ [% END %] Fax: - + [% IF ( mandatoryfax ) %] Required [% END %] -- 2.11.0