Fixed wrong order of change recommendations in summary box in PDF.

This commit is contained in:
Emanuel Schütze 2017-03-22 22:13:33 +01:00
parent 4f3fdf1699
commit bd5ccb62ba

View File

@ -179,7 +179,7 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
if ($scope.viewChangeRecommendations.mode == "diff") {
var columnLineNumbers = [];
var columnChangeType = [];
angular.forEach($scope.change_recommendations, function(change) {
angular.forEach(_.orderBy($scope.change_recommendations, ['line_from']), function(change) {
// line numbers column
var line;
if (change.line_from >= change.line_to - 1) {