Fixed autocompetion for module selector
Closes bug 1212271 Change-Id: I6c9419768b4670cf7c82a3b7e7fe65f7d6134909
This commit is contained in:
@@ -248,7 +248,7 @@
|
|||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: function (term, page) {
|
data: function (term, page) {
|
||||||
return {
|
return {
|
||||||
module: term
|
module_name: term
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
results: function (data, page) {
|
results: function (data, page) {
|
||||||
|
|||||||
@@ -606,7 +606,7 @@ def get_companies_json(records):
|
|||||||
@exception_handler()
|
@exception_handler()
|
||||||
@record_filter(ignore='module')
|
@record_filter(ignore='module')
|
||||||
def get_modules_json(records):
|
def get_modules_json(records):
|
||||||
return _get_collection(records, 'modules', 'module')
|
return _get_collection(records, 'modules', 'module', 'module_name')
|
||||||
|
|
||||||
|
|
||||||
@app.route('/data/companies/<company_name>.json')
|
@app.route('/data/companies/<company_name>.json')
|
||||||
|
|||||||
Reference in New Issue
Block a user