mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
#9397: Search Replace error on custom series_index field
This commit is contained in:
parent
2f6a09e10e
commit
4b7575252e
@ -783,6 +783,12 @@ class MetadataBulkDialog(ResizableDialog, Ui_MetadataBulkDialog):
|
|||||||
books_to_refresh = self.db.set_custom(id, val, label=dfm['label'],
|
books_to_refresh = self.db.set_custom(id, val, label=dfm['label'],
|
||||||
extra=extra, commit=False,
|
extra=extra, commit=False,
|
||||||
allow_case_change=True)
|
allow_case_change=True)
|
||||||
|
elif dest.startswith('#') and dest.endswith('_index'):
|
||||||
|
label = self.db.field_metadata[dest[:-6]]['label']
|
||||||
|
series = self.db.get_custom(id, label=label, index_is_id=True)
|
||||||
|
books_to_refresh = self.db.set_custom(id, series, label=label,
|
||||||
|
extra=val, commit=False,
|
||||||
|
allow_case_change=True)
|
||||||
else:
|
else:
|
||||||
if dest == 'comments':
|
if dest == 'comments':
|
||||||
setter = self.db.set_comment
|
setter = self.db.set_comment
|
||||||
|
Loading…
x
Reference in New Issue
Block a user