Merge pull request #3196 from emanuelschuetze/motionCommentRegression

Fixed regression that opening of motion create form failed.
This commit is contained in:
Emanuel Schütze 2017-04-12 20:12:57 +02:00 committed by GitHub
commit 768cc5f711

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