From c6f98aab5b0f8e3e09704e8513b6741cf0dd4e02 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Fri, 25 Jan 2019 11:55:47 +0000 Subject: [PATCH] Bug 20581: (follow-up) Fix dependency requirement Since this bug is now dependent on Bug 20600 (Provide the ability for users to filter ILL requests) we need to make the status filtering aware of the custom statuses. This patch does that. Signed-off-by: Katrin Fischer Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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) { -- 2.39.5