]> git.koha-community.org Git - koha.git/commit
Bug 30868: (bug 29684 follow-up) Fix borrowernumber var in template
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 31 May 2022 06:23:30 +0000 (08:23 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 15 Jun 2022 16:23:17 +0000 (16:23 +0000)
commiteae79e1bd34338905fae44bc2b1e5b8ebaa5758a
treebb3636bf723063282f7d90ebc1f17c18cbcfb67b
parent6aa9f6dd503d5e7d2532a25e721cef2fd9ccb478
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 <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 9f1cfa0bd31abdf54cb2ccd9eddae674dcaedc97)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt