mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 03:36:06 +01:00
Fix problem with copy structure not handling is_multiple correctly.
This commit is contained in:
parent
682a31d9ed
commit
0b31958c38
1 changed files with 2 additions and 1 deletions
|
|
@ -214,7 +214,8 @@ def __init__(self, library_path, row_factory=False, default_prefs=None,
|
|||
fmvals = [f for f in default_prefs['field_metadata'].values() if f['is_custom']]
|
||||
for f in fmvals:
|
||||
self.create_custom_column(f['label'], f['name'], f['datatype'],
|
||||
f['is_multiple'] is not None, f['is_editable'], f['display'])
|
||||
f['is_multiple'] is not None and len(f['is_multiple']) > 0,
|
||||
f['is_editable'], f['display'])
|
||||
self.initialize_dynamic()
|
||||
|
||||
def get_property(self, idx, index_is_id=False, loc=-1):
|
||||
|
|
|
|||
Loading…
Reference in a new issue