From d1641d3023da67428af58d860df69715ebbd1a7b Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sat, 2 Dec 2017 17:53:49 +0100 Subject: [PATCH] #191: do not ask for summary, in the list of all tickets --- angular_app/js/controllers.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/angular_app/js/controllers.js b/angular_app/js/controllers.js index 60f205e..02e9f8b 100644 --- a/angular_app/js/controllers.js +++ b/angular_app/js/controllers.js @@ -78,7 +78,11 @@ eventManControllers.controller('EventsListCtrl', ['$scope', 'Event', 'EventTicke $scope.filteredLength = 0; $scope.maxPaginationSize = 10; - $scope.events = Event.all({_summary: true}, function(events) { + var query_params = {}; + if (!$state.is('tickets')) { + query_params['_summary'] = true + } + $scope.events = Event.all(query_params, function(events) { if (events && $state.is('tickets')) { angular.forEach(events, function(evt, idx) { var evt_tickets = (evt.tickets || []).slice(0);