diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index ca96ad9934..730e4c09b3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -576,9 +576,14 @@ prep: function(tableData, oData) { var uniques = {}; tableData.forEach(function(row) { - var resolvedName = getStatusName( - oData[0].capabilities[row.status].name - ); + var resolvedName; + if (row.status_alias) { + resolvedName = row.status_alias.lib; + } else { + resolvedName = getStatusName( + oData[0].capabilities[row.status].name + ); + } uniques[resolvedName] = 1 }); Object.keys(uniques).sort().forEach(function(unique) {