angular: Fix deletion of speakers
This commit is contained in:
parent
6a4cc97469
commit
5ddedf94e1
@ -67,6 +67,9 @@ angular.module('OpenSlidesApp.agenda', ['OpenSlidesApp.users'])
|
||||
foreignKey: 'item_id',
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeInject: function (resource, instance) {
|
||||
Speaker.ejectAll({where: {item_id: {'==': instance.id}}});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user