From e645bf152dd639d4464be4a436304c5e9e3a43ec Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 24 Jul 2023 10:23:41 +0000 Subject: [PATCH] Bug 34351: Add link to access_url On k-t-d 1) Run bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh) 2) Create a new Freeform request 3) Update access_url field. Run this mysql query: update illrequests set accessurl = https://koha-community.org/; 4) Visit ill table list at /cgi-bin/koha/ill/ill-requests.pl 5) Verify access url is not clickable 6) Apply patch. Refresh. Verify it's now clickable. Signed-off by: Jeremy Evans Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js index 9419b0fa5d..801143cf57 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -334,7 +334,8 @@ $(document).ready(function() { "data": "access_url", "orderable": true, "render": function(data, type, row, meta) { - return escape_str(data); + return '' + + escape_str(data) + ''; } }, { -- 2.39.5