From b523de9813d7744a6c695be80765aca8cc436630 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Mar 2019 11:26:15 +0530 Subject: [PATCH] Content server: Fix {id} not working in the custom list template Fixes #1818308 [{id} shows as blank in content server template](https://bugs.launchpad.net/calibre/+bug/1818308) --- src/pyj/book_list/custom_list.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/book_list/custom_list.pyj b/src/pyj/book_list/custom_list.pyj index def4c22260..1b44260911 100644 --- a/src/pyj/book_list/custom_list.pyj +++ b/src/pyj/book_list/custom_list.pyj @@ -58,6 +58,8 @@ def default_template(): def render_field(field, mi, book_id): # {{{ + if field is 'id': + return book_id + '' field_metadata = library_data.field_metadata fm = field_metadata[field] if not fm: