Bug 16682: Fix display if Batch patron modification tool does not get any patrons
commitc0d420f42a293e68228bbe7fa95545a08fd2c964
authorMarc Véron <veron@veron.ch>
Tue, 5 Jul 2016 00:10:55 +0000 (5 02:10 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 15 Jul 2016 14:12:39 +0000 (15 14:12 +0000)
treef94d30e68f7ecff95b61088498f2e6b5200deac8
parente465d1aa4b16d7392950b2b682f99eb0c58c1ffd
Bug 16682: Fix display if Batch patron modification tool does not get any patrons

To reproduce:
- Go to Tools->Batch patron modification
- Submit without filling any of  "Use a file", "Or use a patron list",
  "Or list card numbers..." or use a patron lists with zero members
Result: Screen without any information

To test:
- Apply patch
- Repeat steps above
- Verify that you get a nice message
- Verify that the tool works as before
  - with invalid card numbers only
  - with valid and invalid card numbers
  - with valid card numbers only

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt