mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
When using copy to library also create missing composite columns in the destination library. Fixes #1516880 [Logic custom columns NOT copying from one library to another](https://bugs.launchpad.net/calibre/+bug/1516880)
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
d6f40f2d8c
@ -432,11 +432,12 @@ class CopyToLibraryAction(InterfaceAction):
|
||||
incompatible_columns = []
|
||||
missing_columns = []
|
||||
for k, m in db.field_metadata.custom_iteritems():
|
||||
if m['datatype'] == 'composite':
|
||||
continue
|
||||
if k not in newdb_meta:
|
||||
missing_columns.append(k)
|
||||
elif not self._column_is_compatible(m, newdb_meta[k]):
|
||||
# Note that composite columns are always assumed to be
|
||||
# compatible. No attempt is made to copy the template
|
||||
# from the source to the destination.
|
||||
incompatible_columns.append(k)
|
||||
|
||||
if missing_columns or incompatible_columns:
|
||||
|
Loading…
x
Reference in New Issue
Block a user