diff --git a/assets/app/a2services/project-service.js b/assets/app/a2services/project-service.js index a80399e28..6f604447e 100644 --- a/assets/app/a2services/project-service.js +++ b/assets/app/a2services/project-service.js @@ -73,7 +73,10 @@ angular.module('a2.srv.project', [ callback = query; query = {}; } - + if (query && query.tags) { + query['tags[]'] = query.tags.flat() + delete query.tags + } $http.get('/api/project/'+url+'/recordings/search',{ params: query }) diff --git a/assets/app/app/audiodata/recordings/filter-parameters.js b/assets/app/app/audiodata/recordings/filter-parameters.js index 3e699caf1..998e58866 100644 --- a/assets/app/app/audiodata/recordings/filter-parameters.js +++ b/assets/app/app/audiodata/recordings/filter-parameters.js @@ -254,11 +254,12 @@ angular.module('a2.audiodata.recordings.filter-parameters', [ if (!tagsObj[key]) { tagsObj[key] = { tag: key, - tag_id: t.tag_id, + tag_id: [t.tag_id], count: t.count } } else { + tagsObj[key].tag_id.push(t.tag_id); tagsObj[key].count++ } })