From: Galen Charlton Date: Wed, 19 Apr 2017 20:01:35 +0000 (-0400) Subject: webstaff: fix sorting in serials distribution/stream grid X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f92b4f6cccacd7d99b6b2ba7cebcb9f7046b8fd0;p=working%2FEvergreen.git webstaff: fix sorting in serials distribution/stream grid Literal attribute names need to be in double quotes when using orderByFilter. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/js/ui/default/staff/serials/services/core.js b/Open-ILS/web/js/ui/default/staff/serials/services/core.js index f53c8e3181..e40a08c69c 100644 --- a/Open-ILS/web/js/ui/default/staff/serials/services/core.js +++ b/Open-ILS/web/js/ui/default/staff/serials/services/core.js @@ -101,8 +101,8 @@ function(egCore , orderByFilter) { // ... then sort it service.subList.length = 0; angular.extend(service.subList, - orderByFilter(list, ['owing_lib.name', 'start_date', 'end_date', - 'holding_lib.name', 'sdist.id', 'sstr.id']) + orderByFilter(list, ['"owning_lib.name"', '"start_date"', '"end_date"', + '"holding_lib.name"', '"sdist.id"', '"sstr.id"']) ); // ... then remove duplication of owning library, distribution library,