From f50e25a62735925c69bd2968ed3e47ef3730b823 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Thu, 30 Apr 2020 11:29:56 +0000 Subject: [PATCH] Bug 24043: (QA follow-up) Fix another TypeError when retriaving status name Test plan: 1) Apply first patch, and have the same requests as in previous patch test plan 2) Load ill requests list 2a) You can see another TypeError in console 2b) You can notice, the Placed on and Updated on columns have prepended another columns with unformatted dates and without header label 3) Apply this patch 4) Reload page (be sure it is not loaded from cache - Ctrl+F5) 5) Errors from 2a and 2b are gone Signed-off-by: Josef Moravec --- koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 2 +- 1 file changed, 1 insertion(+), 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 a6ec83c02b..d20b26bf6e 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -32,7 +32,7 @@ $(document).ready(function() { resolvedName = row.status_alias.lib; } else { resolvedName = getStatusName( - oData[0].capabilities[row.status].name, + row.capabilities[row.status].name, row ); } -- 2.11.0