Merge pull request #1713 from ostcar/fix_delete_speaker
AngularJS: Fix deletion of speakers.
This commit is contained in:
commit
262964cbea
@ -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