Bug 20991: Do not lost patron's category when editing a patron
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 26 Jun 2018 16:04:01 +0000 (13:04 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 2 Jul 2018 09:04:43 +0000 (10:04 +0100)
commitb3cd4a382ffad36668164749dafb58d48c00d7f1
treee8b3c7f37884ed85a3753443975f33e2182bf37e
parentb6010314dfed0f35c87de1a6c8209cd3e8f8b3c8
Bug 20991: Do not lost patron's category when editing a patron

If there is an error in the edit patron form the patron's category is
lost.
This seems to be a long standing bug.

Test plan:
- Edit an existing patron
- Change the patron category to a category that triggers the error that
the user is not in the right age range for that new category
- Save, error is triggered
=> Without this patch the patron category has been reset

You should also test different ways to edit/add a patron (quick add,
step 1)

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
members/memberentry.pl