fix import media dialog
This commit is contained in:
parent
92fb9e3792
commit
6f979c1f9d
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ pandora.ui.importMediaDialog = function(options) {
|
||||||
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];
|
infoValue = info[infoKey];
|
||||||
if (key == 'year') {
|
if (key == 'year' && infoKey == 'date') {
|
||||||
infoValue = infoValue.substr(0, 4);
|
infoValue = infoValue.substr(0, 4);
|
||||||
}
|
}
|
||||||
if (infoKey == 'tags' && Ox.isArray(type)) {
|
if (infoKey == 'tags' && Ox.isArray(type)) {
|
||||||
|
|
Loading…
Reference in a new issue