Commit 11e0f6c3 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

search: send the raw user search entry in addition to the cooked query

parent b056978d
......@@ -127,8 +127,8 @@ static int answer_to_connection(void *cls, struct MHD_Connection *connection,
// We may need one day to subclass PlgWithSlave to implement a
// plugin-specific method. For now, existing plugins have
// compatible python code, and we can keep one c++ method.
// get_media_url() would also need changing because it accesses Internal:
// either make it generic or move to subclass.
// get_media_url() would also need changing because it is in
// Internal: either make it generic or move to subclass.
//return realplg->answer_to_connection(connection, url, method, version,
// upload_data, upload_data_size, con_cls);
......@@ -604,6 +604,7 @@ int PlgWithSlave::search(const string& ctid, int stidx, int cnt,
if (!m->cmd.callproc("search", {
{"objid", ctid},
{"objkind", objkind},
{"origsearch", searchstr},
{"field", slavefield},
{"value", value} }, res)) {
LOGERR("PlgWithSlave::search: slave failure\n");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment