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

View File

@ -147,7 +147,7 @@ angular.module('OpenSlidesApp.motions.motionBlock', [])
ngDialog.open(MotionBlockForm.getDialog(motionBlock)); ngDialog.open(MotionBlockForm.getDialog(motionBlock));
}; };
$scope.followRecommendations = function () { $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) { .success(function(data) {
$scope.alert = { type: 'success', msg: data.detail, show: true }; $scope.alert = { type: 'success', msg: data.detail, show: true };
}) })