fix import media dialog

This commit is contained in:
rlx 2016-08-09 13:30:31 +02:00
parent 6f979c1f9d
commit 8a04bb9625

View file

@ -95,7 +95,7 @@ pandora.ui.importMediaDialog = function(options) {
var values = Ox.map(pandora.site.importMetadata, function(value, key) { var values = Ox.map(pandora.site.importMetadata, function(value, key) {
var type = Ox.getObjectById(pandora.site.itemKeys, key).type; var type = Ox.getObjectById(pandora.site.itemKeys, key).type;
infoKeys.forEach(function(infoKey) { infoKeys.forEach(function(infoKey) {
infoValue = info[infoKey]; var infoValue = info[infoKey];
if (key == 'year' && infoKey == 'date') { if (key == 'year' && infoKey == 'date') {
infoValue = infoValue.substr(0, 4); infoValue = infoValue.substr(0, 4);
} }