Fixed regression that opening of motion create form failed.

Introduced with commit 3de4a2af1c.
This commit is contained in:
Emanuel Schütze 2017-04-12 15:17:47 +02:00
parent 6899d93cbf
commit d1ff1e540f

View File

@ -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