]> 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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Tue, 21 Jun 2022 13:55:14 +0000 (15:55 +0200)
commita75eb272c2aee8a299fb58d9377f64bc98fe467b
treefe8c711e44c40c06e572fcb0fc73363028b0e0b4
parentbadc8ff6520ba98cb7fe4a1e3067c5d9919c4984
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>
(cherry picked from commit eae79e1bd34338905fae44bc2b1e5b8ebaa5758a)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt