Content server: Fix category collapse by partition not working. Fixes #1945882 [[Content Server] "Search for books" setting error](https://bugs.launchpad.net/calibre/+bug/1945882)

This commit is contained in:
Kovid Goyal 2021-10-03 18:15:43 +05:30
parent aaae134a0f
commit ab15421c43
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -333,7 +333,7 @@ def collapse_partition(collapse_nodes, items, category_node, idx, tag, opts, top
if not name.startswith('##TAG_VIEW##'):
# Formatter succeeded
node_id = category_as_json(
items, items[category_node['id']].category, name, 0,
items, items[category_node['id']]['category'], name, 0,
parent=category_node['id'], is_editable=False, is_gst=is_gst,
is_hierarchical=category_is_hierarchical, is_searchable=False)
node_parent = {'id':node_id, 'children':[]}