From 3de4a2af1c09b325c0cb9c464fca587cc6b03810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Tue, 11 Apr 2017 12:19:36 +0200 Subject: [PATCH] Fixed empty motion comment field in motion update form. Motion comment values were not extracted. Concerns edit button in motion list view only. --- CHANGELOG | 1 + openslides/motions/static/js/motions/site.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index f77a452b4..2321a83d6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -14,6 +14,7 @@ Motions: - New export dialog [#3185]. - Fixed issue when creating/deleting motion comment fields in the settings [#3187]. +- Fixed empty motion comment field in motion update form [#3194]. Core: - No reload on logoff. OpenSlides is now a full single page diff --git a/openslides/motions/static/js/motions/site.js b/openslides/motions/static/js/motions/site.js index 6bae75a30..424f941b6 100644 --- a/openslides/motions/static/js/motions/site.js +++ b/openslides/motions/static/js/motions/site.js @@ -838,6 +838,7 @@ angular.module('OpenSlidesApp.motions.site', [ 'ngDialog', 'MotionForm', 'Motion', + 'MotionComment', 'Category', 'Config', 'Tag', @@ -851,7 +852,7 @@ angular.module('OpenSlidesApp.motions.site', [ 'osTableSort', 'MotionExportForm', 'MotionPdfExport', - function($scope, $state, $http, gettext, gettextCatalog, ngDialog, MotionForm, Motion, + function($scope, $state, $http, gettext, gettextCatalog, ngDialog, MotionForm, Motion, MotionComment, Category, Config, Tag, Workflow, User, Agenda, MotionBlock, Projector, ProjectionDefault, osTableFilter, osTableSort, MotionExportForm, MotionPdfExport) { Motion.bindAll({}, $scope, 'motions'); @@ -1045,6 +1046,7 @@ angular.module('OpenSlidesApp.motions.site', [ // open new/edit dialog $scope.openDialog = function (motion) { + MotionComment.populateFields(motion); ngDialog.open(MotionForm.getDialog(motion)); }; // Export dialog