Merge pull request #2512 from FinnStutzenstein/Issue2470

key value switched in angular foreach (fixes #2470)
This commit is contained in:
Emanuel Schütze 2016-10-17 22:05:55 +02:00 committed by GitHub
commit 68139ff5be

View File

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