# HG changeset patch # User Chloe Laisne # Date 1466695377 -7200 # Node ID 9ae2cf79d167b5e1facea32650afab7c12e8b5eb # Parent a441c40f9c5e526cbceec9013c5e37082d1b71cf Quickfix this is undefined diff -r a441c40f9c5e -r 9ae2cf79d167 cms/app-client/app/components/playlist-component.js --- a/cms/app-client/app/components/playlist-component.js Thu Jun 23 17:09:32 2016 +0200 +++ b/cms/app-client/app/components/playlist-component.js Thu Jun 23 17:22:57 2016 +0200 @@ -7,11 +7,12 @@ filter: Ember.inject.service(), documents: Ember.computed('model', 'filter.location', 'filter.language', 'filter.discourse', 'filter.date', 'filter.theme', function() { + var self = this; var documents = this.get('model'); if (this.get('filter.date').length > 0) { var copy = documents; documents.map(function(document) { - if (this.get('filter.date').indexOf(document.get('created')) === -1){ + if (self.get('filter.date').indexOf(document.get('created')) === -1){ copy = copy.without(document); } }); diff -r a441c40f9c5e -r 9ae2cf79d167 cms/app-client/app/routes/application.js --- a/cms/app-client/app/routes/application.js Thu Jun 23 17:09:32 2016 +0200 +++ b/cms/app-client/app/routes/application.js Thu Jun 23 17:22:57 2016 +0200 @@ -2,7 +2,7 @@ export default Ember.Route.extend({ - model() { + model: function() { return this.store.findAll('document'); },