Merge pull request #3612 from emanuelschuetze/fixAgendaImport

Fixed agenda import with empty duration (fix #3603, fix #3601).
This commit is contained in:
Norman Jäckel 2018-03-04 20:58:23 +01:00 committed by GitHub
commit 2c266ffc03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -92,7 +92,7 @@
</span>
{{ item.title }}
<td>{{ item.text | limitTo:80 }}{{ item.text.length > 80 ? '...' : '' }}
<td>{{ item.duration | osMinutesToTime }}
<td>{{ item.duration ? 'item.duration | osMinutesToTime' : '' }}
<td>{{ item.comment }}
<td>{{ item.is_hidden }}
</table>
@ -100,7 +100,7 @@
<div class="text-danger">
<i class="fa fa-exclamation-triangle"></i>
{{ itemsWillNMotBeImported }}
{{ itemsWillNotBeImported }}
<translate>topics will be not imported.</translate>
</div>
<div>