From bbd8782c4c2ceffae52c9c9cf1131992e68f9863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Wed, 1 Feb 2017 22:14:52 +0100 Subject: [PATCH] Fix 'follow recommendation for all motions' function. in motion block detail view --- openslides/motions/static/js/motions/motion-block.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/motions/static/js/motions/motion-block.js b/openslides/motions/static/js/motions/motion-block.js index 83595f2c6..bf2c1f90f 100644 --- a/openslides/motions/static/js/motions/motion-block.js +++ b/openslides/motions/static/js/motions/motion-block.js @@ -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 }; })