From 32c1cf0f6fc85849a9deaae990a24f80857f92b2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 3 May 2021 18:08:49 +0000 Subject: [PATCH] Bug 28179: (follow-up) Remove console.log MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch removes a "console.log" from detail.tt and replaces it with similar output to the user. It will probably never be triggered, but better to handle it gracefully than have a hidden log. Signed-off-by: Owen Leonard Signed-off-by: Rasmus Leißner Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index f48febbe01..bde528c30d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1074,7 +1074,7 @@ Note that permanent location is a code, and location may be an authval. } else if ( div.attr("class") == "cover-image local-coverimg" ) { lightbox_descriptions.push(_("Local cover image (edit)").format($(img).data('link'))); } else { - console.log("Source of the image cannot be guessed.") + lightbox_descriptions.push(_("Cover image source unknown")); } } } -- 2.39.5