mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04: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
@ -590,7 +590,7 @@ class EditMetadataAction(InterfaceAction):
|
|||||||
if (dt == 'series' and not dest_value and src_value):
|
if (dt == 'series' and not dest_value and src_value):
|
||||||
src_index = db.get_custom_extra(src_id, num=colnum, index_is_id=True)
|
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)
|
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)
|
db.set_custom(dest_id, src_value, num=colnum)
|
||||||
if (dt == 'text' and fm['is_multiple'] and src_value):
|
if (dt == 'text' and fm['is_multiple'] and src_value):
|
||||||
if not dest_value:
|
if not dest_value:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user