From 8a04bb9625a0e6bc988653a63759a1a9ac2e7cc8 Mon Sep 17 00:00:00 2001 From: rlx Date: Tue, 9 Aug 2016 13:30:31 +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 26d9389d7..335759998 100644 --- a/static/js/importMediaDialog.js +++ b/static/js/importMediaDialog.js @@ -95,7 +95,7 @@ pandora.ui.importMediaDialog = function(options) { var values = Ox.map(pandora.site.importMetadata, function(value, key) { var type = Ox.getObjectById(pandora.site.itemKeys, key).type; infoKeys.forEach(function(infoKey) { - infoValue = info[infoKey]; + var infoValue = info[infoKey]; if (key == 'year' && infoKey == 'date') { infoValue = infoValue.substr(0, 4); }