webstaff: fix sorting in serials distribution/stream grid
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 19 Apr 2017 20:01:35 +0000 (16:01 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 30 May 2017 16:06:36 +0000 (12:06 -0400)
Literal attribute names need to be in double quotes when
using orderByFilter.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/serials/services/core.js

index f53c8e3..e40a08c 100644 (file)
@@ -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,