From d1ff1e540f8b596fc0505a5dd65dd4d47f3bb91c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Wed, 12 Apr 2017 15:17:47 +0200 Subject: [PATCH] Fixed regression that opening of motion create form failed. Introduced with commit 3de4a2af1c09b325c0cb9c464fca587cc6b03810. --- openslides/motions/static/js/motions/site.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openslides/motions/static/js/motions/site.js b/openslides/motions/static/js/motions/site.js index 424f941b6..582b8911a 100644 --- a/openslides/motions/static/js/motions/site.js +++ b/openslides/motions/static/js/motions/site.js @@ -1046,7 +1046,9 @@ angular.module('OpenSlidesApp.motions.site', [ // open new/edit dialog $scope.openDialog = function (motion) { - MotionComment.populateFields(motion); + if (motion) { + MotionComment.populateFields(motion); + } ngDialog.open(MotionForm.getDialog(motion)); }; // Export dialog