diff --git a/openslides/motions/static/js/motions/site.js b/openslides/motions/static/js/motions/site.js index 20793a468..a500bdc8c 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