From 5ddedf94e166232e4032ac8c58ffa85ebb74131e Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Fri, 27 Nov 2015 23:59:04 +0100 Subject: [PATCH] angular: Fix deletion of speakers --- openslides/agenda/static/js/agenda/base.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openslides/agenda/static/js/agenda/base.js b/openslides/agenda/static/js/agenda/base.js index 87e7cf4cc..c5e5ee762 100644 --- a/openslides/agenda/static/js/agenda/base.js +++ b/openslides/agenda/static/js/agenda/base.js @@ -67,6 +67,9 @@ angular.module('OpenSlidesApp.agenda', ['OpenSlidesApp.users']) foreignKey: 'item_id', } } + }, + beforeInject: function (resource, instance) { + Speaker.ejectAll({where: {item_id: {'==': instance.id}}}); } }); }