Book details: Fix single value custom text column not clickable. Fixes #1521004 [Non-clickables in the book details](https://bugs.launchpad.net/calibre/+bug/1521004)

Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
Kovid Goyal 2015-11-30 13:53:08 +05:30
commit f7e8e5e8f0

View File

@ -228,7 +228,8 @@ def mi_to_html(mi, field_list=None, default_author_link=None, use_roman_numbers=
metadata['name'], a(x)), a(item_data(field, x, book_id)), p(x))
for x in all_vals]
val = metadata['is_multiple']['list_to_ui'].join(links)
elif metadata['datatype'] == 'enumeration':
elif metadata['datatype'] == 'text' or metadata['datatype'] == 'enumeration':
# text/is_multiple handled above so no need to add the test to the if
try:
st = metadata['search_terms'][0]
except Exception: