Merge pull request #3685 from FinnStutzenstein/fixedMotionSlide

Fixed motion slide not showing any diffs
This commit is contained in:
Emanuel Schütze 2018-04-10 14:00:30 +02:00 committed by GitHub
commit 9e2c6a14fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,9 @@ angular.module('OpenSlidesApp.motions.projector', [
}, function () { }, function () {
$scope.change_recommendations = []; $scope.change_recommendations = [];
$scope.title_change_recommendation = null; $scope.title_change_recommendation = null;
if ($scope.motion) {
MotionChangeRecommendation.filter({ MotionChangeRecommendation.filter({
'where': {'motion_version_id': {'==': id}} 'where': {'motion_version_id': {'==': $scope.motion.active_version}}
}).forEach(function(change) { }).forEach(function(change) {
if (change.isTextRecommendation()) { if (change.isTextRecommendation()) {
$scope.change_recommendations.push(change); $scope.change_recommendations.push(change);
@ -46,6 +47,7 @@ angular.module('OpenSlidesApp.motions.projector', [
$scope.title_change_recommendation = change; $scope.title_change_recommendation = change;
} }
}); });
}
}); });
} }
]); ]);