From 5272a3c1bb1ecc990341fe4e39bb24e1aaa5371c Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Mon, 17 Oct 2016 08:57:47 +0200 Subject: [PATCH] key value switched in angular foreach (fixes #2470) --- openslides/core/static/js/core/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/core/static/js/core/base.js b/openslides/core/static/js/core/base.js index f4d263298..1b3bd38ed 100644 --- a/openslides/core/static/js/core/base.js +++ b/openslides/core/static/js/core/base.js @@ -488,7 +488,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',