From 567557117ad11d7857d3ef32c95b089065d8cd9b Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Fri, 18 Jun 2021 11:10:01 +0100 Subject: [PATCH] Bug 27170: Fix bug fix This commit fixes the incorrect bug fix from the previous commit Signed-off-by: Holly Cooper Signed-off-by: Barry Cannon Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/js/ill-availability.js | 2 +- koha-tmpl/opac-tmpl/bootstrap/js/ill-availability.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-availability.js b/koha-tmpl/intranet-tmpl/prog/js/ill-availability.js index a7da26ba1c..fd9a5845b0 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-availability.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-availability.js @@ -1,7 +1,7 @@ $(document).ready(function() { var getLinks = function(row) { - if (row.links && row.links.length === 0) { + if (!row.links || row.links.length === 0) { return false; } return row.links.map(function(link) { diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/ill-availability.js b/koha-tmpl/opac-tmpl/bootstrap/js/ill-availability.js index 9e4a57d6f4..560803fffb 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/ill-availability.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/ill-availability.js @@ -1,7 +1,7 @@ $(document).ready(function() { var getLinks = function(row) { - if (row.links && row.links.length === 0) { + if (!row.links || row.links.length === 0) { return false; } return row.links.map(function(link) { -- 2.39.5