key value switched in angular foreach (fixes #2470)

This commit is contained in:
FinnStutzenstein 2016-10-17 08:57:47 +02:00
parent c2a1675e37
commit 5272a3c1bb

View File

@ -488,7 +488,7 @@ angular.module('OpenSlidesApp.core', [
}, },
getStateForCurrentSlide: function () { getStateForCurrentSlide: function () {
var return_dict; var return_dict;
angular.forEach(this.elements, function(key, value) { angular.forEach(this.elements, function(value, key) {
if (value.name == 'agenda/list-of-speakers') { if (value.name == 'agenda/list-of-speakers') {
return_dict = { return_dict = {
'state': 'agenda.item.detail', 'state': 'agenda.item.detail',