From e316eff18da913e979df15334a683048450aef6f Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Tue, 23 Oct 2018 11:10:06 +0200 Subject: [PATCH] Don't display empty metadata fields in copyright popup --- js/h5p.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index db262d8..1f9d052 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -1418,7 +1418,7 @@ H5P.MediaCopyright = function (copyright, labels, order, extraFields) { for (var i = 0; i < order.length; i++) { var fieldName = order[i]; - if (copyright[fieldName] !== undefined) { + if (copyright[fieldName] !== undefined && copyright[fieldName] !== '') { var humanValue = copyright[fieldName]; if (fieldName === 'license') { humanValue = humanizeLicense(copyright.license, copyright.version);