Server: Fix adding expressions to the search always using AND instead of respecting the setting to use OR or AND. Fixes #1724405 [request in remote client server](https://bugs.launchpad.net/calibre/+bug/1724405)

This commit is contained in:
Kovid Goyal 2017-10-18 10:03:30 +05:30
parent b36d1704e4
commit a7c4335c2c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -153,9 +153,8 @@ def node_clicked(i):
execute_search(expr)
def add_to_search(node, search_type, anded):
if anded is undefined or anded is None:
anded = get_session_data().get('and_search_terms')
def add_to_search(node, search_type):
anded = get_session_data().get('and_search_terms')
state.active_nodes[node.id] = [search_type, anded]
render_search_expression()