From 0f29a07371dbfac0042e7540802facf997ccb864 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Thu, 21 Apr 2016 09:48:40 +0200 Subject: [PATCH] Revert "Bug 15682 - Only allow merging of 2 or more records form lsits (for consistency)" This reverts commit bde65f116cb2f7467e10f771e6368ccdf41fc578. --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index e6113dece7..80ddb2fbca 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -197,15 +197,15 @@ $(document).ready(function(){ */ function MergeItems() { var checkboxes = $("input:checkbox:checked"); - if (checkboxes.length < 2) { - alert(_("At least two records must be selected for merging.")); - } else { + if (checkboxes.length > 0) { var params = []; $(checkboxes).each(function() { params.push('biblionumber=' + $(this).val()); }); var url = '/cgi-bin/koha/cataloguing/merge.pl?' + params.join('&'); location.href = url; + } else { + alert(_("You must select at least one record")); } return false; } -- 2.39.5