mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-06 15:44:59 +01:00
Fix merging of book records not working correctly for custom columns of type text with fixed set of permitted values. Null values were incorrectly overwriting non-null values.
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
f24c20c3e7
1 changed files with 1 additions and 1 deletions
|
|
@ -590,7 +590,7 @@ def is_null_date(x):
|
|||
if (dt == 'series' and not dest_value and src_value):
|
||||
src_index = db.get_custom_extra(src_id, num=colnum, index_is_id=True)
|
||||
db.set_custom(dest_id, src_value, num=colnum, extra=src_index)
|
||||
if (dt == 'enumeration' or (dt == 'text' and not fm['is_multiple']) and not dest_value):
|
||||
if ((dt == 'enumeration' or (dt == 'text' and not fm['is_multiple'])) and not dest_value):
|
||||
db.set_custom(dest_id, src_value, num=colnum)
|
||||
if (dt == 'text' and fm['is_multiple'] and src_value):
|
||||
if not dest_value:
|
||||
|
|
|
|||
Loading…
Reference in a new issue