Don't display empty metadata fields in copyright popup

set-minimum-height-for-dialogs
Paal Joergensen 2018-10-23 11:10:06 +02:00
parent 85d2e2eb75
commit e316eff18d
1 changed files with 1 additions and 1 deletions

View File

@ -1418,7 +1418,7 @@ H5P.MediaCopyright = function (copyright, labels, order, extraFields) {
for (var i = 0; i < order.length; i++) { for (var i = 0; i < order.length; i++) {
var fieldName = order[i]; var fieldName = order[i];
if (copyright[fieldName] !== undefined) { if (copyright[fieldName] !== undefined && copyright[fieldName] !== '') {
var humanValue = copyright[fieldName]; var humanValue = copyright[fieldName];
if (fieldName === 'license') { if (fieldName === 'license') {
humanValue = humanizeLicense(copyright.license, copyright.version); humanValue = humanizeLicense(copyright.license, copyright.version);