From 92fb9e3792601314715ef3ea256efd049e349bb5 Mon Sep 17 00:00:00 2001 From: rlx Date: Tue, 9 Aug 2016 13:26:51 +0200 Subject: [PATCH] fix import media dialog --- static/js/importMediaDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/importMediaDialog.js b/static/js/importMediaDialog.js index f395d0c0..d8801670 100644 --- a/static/js/importMediaDialog.js +++ b/static/js/importMediaDialog.js @@ -93,7 +93,7 @@ pandora.ui.importMediaDialog = function(options) { "title", "uploader", "url" ]; var values = Ox.map(pandora.site.importMetadata, function(value, key) { - var type = pandora.site.itemKeys[key].type; + var type = Ox.getObjectById(pandora.site.itemKeys, key).type; infoKeys.forEach(function(infoKey) { infoValue = info[infoKey]; if (key == 'year') {