Fix #1025838 ("Destination field" dropdown in "Edit Meta information" window missing "Published Date" option)

This commit is contained in:
Kovid Goyal 2012-07-18 09:03:26 +05:30
commit 98d0fd3e4f

View File

@ -410,7 +410,7 @@ class MetadataBulkDialog(ResizableDialog, Ui_MetadataBulkDialog):
(fm[f]['datatype'] in ['text', 'series', 'enumeration', 'comments'] (fm[f]['datatype'] in ['text', 'series', 'enumeration', 'comments']
and fm[f].get('search_terms', None) and fm[f].get('search_terms', None)
and f not in ['formats', 'ondevice']) or and f not in ['formats', 'ondevice']) or
(fm[f]['datatype'] in ['int', 'float', 'bool'] and (fm[f]['datatype'] in ['int', 'float', 'bool', 'datetime'] and
f not in ['id'])): f not in ['id'])):
self.all_fields.append(f) self.all_fields.append(f)
self.writable_fields.append(f) self.writable_fields.append(f)