show date instead of undefined in results grid, fixes #2727
This commit is contained in:
parent
772d1c7ea2
commit
ea52722d9f
2 changed files with 4 additions and 2 deletions
|
|
@ -131,7 +131,9 @@ pandora.ui.list = function() {
|
|||
) + size + '.jpg?' + data.modified),
|
||||
format, info, sortKey = sort[0].key;
|
||||
if (['title', 'director', 'random'].indexOf(sortKey) > -1) {
|
||||
info = data['year'];
|
||||
info = data['year'] || data['date'] || '';
|
||||
window.test = data;
|
||||
console.log('SORT', sortKey, info, data);
|
||||
} else {
|
||||
format = pandora.getSortKeyData(sortKey).format;
|
||||
if (Ox.isUndefined(data[sortKey]) || Ox.isNull(data[sortKey])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue