Merge pull request #1713 from ostcar/fix_delete_speaker

AngularJS: Fix deletion of speakers.
This commit is contained in:
Norman Jäckel 2015-11-28 13:24:58 +01:00
commit 262964cbea

View File

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