From 85ffe4d8fadceb561d42486e8e83a31d4a0c3908 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Sun, 20 Mar 2016 20:30:24 +0100 Subject: [PATCH] Catch JS error "this.getVersion(...) is undefined" (Fixes #2048) --- openslides/motions/static/js/motions/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/motions/static/js/motions/base.js b/openslides/motions/static/js/motions/base.js index 6deb66404..c6fdb80a8 100644 --- a/openslides/motions/static/js/motions/base.js +++ b/openslides/motions/static/js/motions/base.js @@ -132,7 +132,7 @@ angular.module('OpenSlidesApp.motions', ['OpenSlidesApp.users']) return element.id == versionId; }); } - return this.versions[index]; + return this.versions[index] || {}; }, getTitle: function (versionId) { return this.getVersion(versionId).title;