Bug 21221: Shortcut memberentry scripts if patron does not exist
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 14 Aug 2018 19:26:39 +0000 (16:26 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 16 Aug 2018 14:21:05 +0000 (15:21 +0100)
commit0c3d3a3a7fe1d49735d3273b3a45b287219fb5da
tree59ca3c6f87babab5465167ea1df613f504a941f4
parenta2b4f38712694b55aa4c631e4b0d0a65e2adc002
Bug 21221: Shortcut memberentry scripts if patron does not exist

If borrowernumber is passed and that it does not refer to a valid patron
in DB, we should not continue the script and display an error instead.

Test plan:
Create a patron
Edit a patron
=> Both should work ok
You can also test the other action memberentry.pl manage.

Edit it again but modify the borrowernumber parameter
=> You should see a friendly user message saying that the patron does
not exist.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 51933c7753f04cdc7baa745037919e601ec3d798)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
members/memberentry.pl