From 0bb397492d7ef5611a2cb394e12f01eed7a8cbbd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Tue, 5 Jul 2016 02:10:55 +0200 Subject: [PATCH] Bug 16682: Fix display if Batch patron modification tool does not get any patrons MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit c0d420f42a293e68228bbe7fa95545a08fd2c964) Signed-off-by: Frédéric Demians (cherry picked from commit 36ffbb193fb8b2374a60b9acee8ca55ff5a7ea81) Signed-off-by: Julian Maurice --- .../intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index 3bd2bf5a56..0cee4073b5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -172,6 +172,12 @@ [% END %] + [% IF ( op == 'show') && (!borrowers) && (!notfoundcardnumbers) # Alert if no patrons given%] + [% op = 'noshow' # Change op to prevent display in code below %] +

Batch patrons modification

+
No patron card numbers given. Back
+ [% END #Alert if no patrons %] + [% IF ( op == 'show' or op == 'show_results' ) %] [% IF ( op == 'show' ) %]

Batch patrons modification

-- 2.39.5