mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Similar books: Fix changing the search to be over a custom column not working. Fixes #2012803 ["Similar Books" does not search using column lookups names specified in settings](https://bugs.launchpad.net/calibre/+bug/2012803)
This commit is contained in:
parent
b2aa59b484
commit
6f6da27160
@ -77,7 +77,7 @@ class SimilarBooksAction(InterfaceAction):
|
||||
# Get the value of the requested field. Can be a list or a simple
|
||||
# val. It is possible that col no longer exists, in which case fall
|
||||
# back to the default
|
||||
if col not in mi:
|
||||
if col not in mi.all_field_keys():
|
||||
col = db.prefs.defaults[key]
|
||||
val = mi.get(col, None)
|
||||
if not val:
|
||||
|
Loading…
x
Reference in New Issue
Block a user