use pandora.site.importMetadata

This commit is contained in:
j 2016-09-19 19:56:42 +02:00
commit 2869dbafab
2 changed files with 5 additions and 2 deletions

View file

@ -137,7 +137,8 @@ pandora.ui.addFilesDialog = function(options) {
}
(isNewItem ? pandora.api.edit : Ox.noop)(Ox.extend(
Ox.filter(item, function(value, key) {
return key != 'title';
return key != 'title' &&
Object.keys(pandora.site.importMetadata).indexOf(key) > -1;
}),
{'id': id}
), function(result) {