From a8e3fd2433f06b3cdb95ca33f25e8c37bcff8692 Mon Sep 17 00:00:00 2001 From: Roch D'Amour Date: Tue, 17 Apr 2018 10:59:18 -0400 Subject: [PATCH] Bug 17674: Remove delete related item checkbox when no items is available When the number of items available is 0, the confirmation dialog still ask is you also want to delete related items. This patch remove the checkbox in the confirmation dialog when the number of related items is 0. To test: - Try to delete some serials that has items available, the confirmation dialog does not ask if you want to delete related items since there are none. - Try to delete some serials which has items avaible. The confirmation dialog should show a checkbox and ask if you want to delete related items --- .../intranet-tmpl/prog/en/modules/serials/serials-collection.tt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt index 055d079..29aef38 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-collection.tt @@ -35,9 +35,11 @@

Are you sure you want to delete? [% serialnumber %] serial(s) will be deleted

Number of items available: [% countitems %]
-

- -

+ [% IF $countitems > 0 %] +

+ +

+ [% END %] -- 2.7.4