From 6f979c1f9d22673201dba0e560792347be590d3c Mon Sep 17 00:00:00 2001 From: rlx Date: Tue, 9 Aug 2016 13:28: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 d88016705..26d9389d7 100644 --- a/static/js/importMediaDialog.js +++ b/static/js/importMediaDialog.js @@ -96,7 +96,7 @@ pandora.ui.importMediaDialog = function(options) { var type = Ox.getObjectById(pandora.site.itemKeys, key).type; infoKeys.forEach(function(infoKey) { infoValue = info[infoKey]; - if (key == 'year') { + if (key == 'year' && infoKey == 'date') { infoValue = infoValue.substr(0, 4); } if (infoKey == 'tags' && Ox.isArray(type)) {