mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:03:53 +02: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
1 changed files with 4 additions and 2 deletions
|
|
@ -104,8 +104,10 @@ def render_data(mi, use_roman_numbers=True, all_fields=False):
|
|||
field = 'title_sort'
|
||||
if all_fields:
|
||||
display = True
|
||||
if (not display or not metadata or mi.is_null(field) or
|
||||
field == 'comments'):
|
||||
isnull = mi.is_null(field)
|
||||
if metadata['datatype'] == 'bool':
|
||||
isnull = mi.get(field) is None
|
||||
if (not display or not metadata or isnull or field == 'comments'):
|
||||
continue
|
||||
name = metadata['name']
|
||||
if not name:
|
||||
|
|
|
|||
Loading…
Reference in a new issue