LP#2018534: treat year as numeric when retrieving item circs by year
[evergreen-equinox.git] / Open-ILS / web / js / ui / default / staff / cat / item / app.js
index f722013..4869605 100644 (file)
@@ -1129,7 +1129,7 @@ console.debug($scope.copy_alert_count);
 
             $scope.circ_counts = counts.reduce(function(circ_counts, circbyyr) {
                 var count = Number(circbyyr.count());
-                var year = circbyyr.year();
+                var year = Number(circbyyr.year());
 
                 var index = circ_counts.findIndex(function(existing_count) {
                     return existing_count.year === year;