Fix 'follow recommendation for all motions' function.

in motion block detail view
This commit is contained in:
Emanuel Schütze 2017-02-01 22:14:52 +01:00
parent 6f05fc09ce
commit bbd8782c4c
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ angular.module('OpenSlidesApp.motions.motionBlock', [])
ngDialog.open(MotionBlockForm.getDialog(motionBlock));
};
$scope.followRecommendations = function () {
$http.post('/rest/motions/motion-block/' + motionBlock.id + '/follow_recommendations/')
$http.post('/rest/motions/motion-block/' + motionBlockId + '/follow_recommendations/')
.success(function(data) {
$scope.alert = { type: 'success', msg: data.detail, show: true };
})