From 491864e799357b616611295411adeca5a924fc20 Mon Sep 17 00:00:00 2001 From: alex_h Date: Wed, 15 Jan 2014 11:34:50 +1300 Subject: [PATCH] bug 11324: delete all only works on 'normal' tab test plan 1. find a book with some items 2. in the marc tab click edit and choose delete all 3. notice it doesn't work 4. apply the patch 5. refresh page 6. try delete all again --- .../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc index 63b22a4..0b10901 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc @@ -31,8 +31,8 @@ function confirm_deletion() { var count = [% count %]; var holdcount = [% holdcount %]; - var countorders = [% countorders %]; - var countdeletedorders = [% countdeletedorders %]; + var countorders = [% countorders || 0%]; + var countdeletedorders = [% countdeletedorders || 0%]; var is_confirmed; if (count > 0){ is_confirmed = alert( count + " " +_("item(s) are attached to this record. You must delete all items before deleting this record.") ); -- 1.7.9.5