mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix yes/no fields with value of No not showing up in the book details panel
This commit is contained in:
parent
077dee3ceb
commit
6699547216
@ -104,8 +104,10 @@ def render_data(mi, use_roman_numbers=True, all_fields=False):
|
|||||||
field = 'title_sort'
|
field = 'title_sort'
|
||||||
if all_fields:
|
if all_fields:
|
||||||
display = True
|
display = True
|
||||||
if (not display or not metadata or mi.is_null(field) or
|
isnull = mi.is_null(field)
|
||||||
field == 'comments'):
|
if metadata['datatype'] == 'bool':
|
||||||
|
isnull = mi.get(field) is None
|
||||||
|
if (not display or not metadata or isnull or field == 'comments'):
|
||||||
continue
|
continue
|
||||||
name = metadata['name']
|
name = metadata['name']
|
||||||
if not name:
|
if not name:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user