From eae79e1bd34338905fae44bc2b1e5b8ebaa5758a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 31 May 2022 08:23:30 +0200 Subject: [PATCH] Bug 30868: (bug 29684 follow-up) Fix borrowernumber var in template borrower_data does not contain the borrowernumber, it is sent separately. Test plan: 1. Edit a patron record (for example: Henry Acevedo). 2. Note that the URL is http://127.0.0.1:8081/cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=19 3. Change date of birth to yesterday. 4. Save. 5. Error message displayed above the Save and Cancel buttons: The following fields are wrong. Please fix them. - Patron's age is incorrect for their category. Ages allowed are 18-999. 6. Note that the URL is now http://127.0.0.1:8081/cgi-bin/koha/members/memberentry.pl 7. Fix date of birth (for example: change year to 2000). 8. Select Save. => Without this patch you get: "Patron not found. Return to search." => With this patch applied the patron's data is saved Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 9f1cfa0bd31abdf54cb2ccd9eddae674dcaedc97) Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 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 e61ae4f688..5ea169e046 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -51,7 +51,7 @@ legend:hover { [% IF (borrower_data.firstname || borrower_data.surname ) %]
  • - + [% INCLUDE 'patron-title.inc' %]
  • @@ -229,7 +229,7 @@ legend:hover { [% IF opadd %] [% ELSE %] - + [% END %] Cancel @@ -246,7 +246,7 @@ legend:hover { - + [% IF ( step ) %] -- 2.39.5