angular: Fix deletion of speakers

This commit is contained in:
Oskar Hahn 2015-11-27 23:59:04 +01:00
parent 6a4cc97469
commit 5ddedf94e1

View File

@ -67,6 +67,9 @@ angular.module('OpenSlidesApp.agenda', ['OpenSlidesApp.users'])
foreignKey: 'item_id', foreignKey: 'item_id',
} }
} }
},
beforeInject: function (resource, instance) {
Speaker.ejectAll({where: {item_id: {'==': instance.id}}});
} }
}); });
} }