From: Josef Moravec Date: Thu, 30 Apr 2020 11:29:56 +0000 (+0000) Subject: Bug 24043: (QA follow-up) Fix another TypeError when retrieving status name X-Git-Url: http://git.equinoxoli.org/?p=koha-equinox.git;a=commitdiff_plain;h=5b2c79f1ea8313f6e0328d3efa2ea190b184c1d1 Bug 24043: (QA follow-up) Fix another TypeError when retrieving 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 Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Martin Renvoize --- 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 a6ec83c..d20b26b 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 ); }