diff --git a/static/js/pandora/metadataDialog.js b/static/js/pandora/metadataDialog.js index e07762af..bc557d64 100644 --- a/static/js/pandora/metadataDialog.js +++ b/static/js/pandora/metadataDialog.js @@ -285,9 +285,9 @@ pandora.ui.metadataDialog = function(data) { } function updateMetadata() { - var edit = {id: data.id}, - type = Ox.getObjectById(pandora.site.itemKeys, key).type; + var edit = {id: data.id}, type; updateKeys.forEach(function(key) { + type = Ox.getObjectById(pandora.site.itemKeys, key).type; edit[key] = imdb[key] || ( Ox.isArray(type) ? [] : '' ); @@ -304,4 +304,4 @@ pandora.ui.metadataDialog = function(data) { return that; -}; \ No newline at end of file +};