From c4c9cd9d6eb554998f2255b91e74f74b04d1ffd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Wed, 28 Feb 2018 13:14:33 +0100 Subject: [PATCH] Fixed agenda import with empty duration (fix #3603, fix #3601). --- openslides/topics/static/js/topics/site.js | 2 +- openslides/topics/static/templates/topics/topic-import.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openslides/topics/static/js/topics/site.js b/openslides/topics/static/js/topics/site.js index 4be30afef..e8ddc1929 100644 --- a/openslides/topics/static/js/topics/site.js +++ b/openslides/topics/static/js/topics/site.js @@ -309,7 +309,7 @@ angular.module('OpenSlidesApp.topics.site', ['OpenSlidesApp.topics', 'OpenSlides } item.duration = time; } else { - item.duration = null; + delete item.duration; } // is_hidden if (item.is_hidden) { diff --git a/openslides/topics/static/templates/topics/topic-import.html b/openslides/topics/static/templates/topics/topic-import.html index 0e851a982..c454bd929 100644 --- a/openslides/topics/static/templates/topics/topic-import.html +++ b/openslides/topics/static/templates/topics/topic-import.html @@ -92,7 +92,7 @@ {{ item.title }} {{ item.text | limitTo:80 }}{{ item.text.length > 80 ? '...' : '' }} - {{ item.duration | osMinutesToTime }} + {{ item.duration ? 'item.duration | osMinutesToTime' : '' }} {{ item.comment }} {{ item.is_hidden }} @@ -100,7 +100,7 @@
- {{ itemsWillNMotBeImported }} + {{ itemsWillNotBeImported }} topics will be not imported.