Merge pull request #3328 from FinnStutzenstein/mediafile-type-fix
Fixing mediafiles list view for medifiles without a type
This commit is contained in:
commit
c0bd367342
@ -85,7 +85,7 @@ angular.module('OpenSlidesApp.mediafiles.resources', [
|
||||
return /\/(.+?)$/.exec(filename)[1];
|
||||
}],
|
||||
filetype: [function () {
|
||||
return this.mediafile.type;
|
||||
return this.mediafile.type || gettext('undefined');
|
||||
}],
|
||||
title_or_filename: ['title', 'mediafile', function (title) {
|
||||
return title || this.filename;
|
||||
|
Loading…
Reference in New Issue
Block a user