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 <katrin.fischer.83@web.de>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Andrew Isherwood 2019-01-25 11:55:47 +00:00 committed by Nick Clemens
parent bc05a8a605
commit c6f98aab5b
1 changed files with 8 additions and 3 deletions

View File

@ -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) {