Fixed autocompetion for module selector

Closes bug 1212271

Change-Id: I6c9419768b4670cf7c82a3b7e7fe65f7d6134909
This commit is contained in:
Ilya Shakhat
2013-08-14 18:18:20 +04:00
parent 319ee1af66
commit 85c0db4eee
2 changed files with 2 additions and 2 deletions

View File

@@ -248,7 +248,7 @@
dataType: 'json',
data: function (term, page) {
return {
module: term
module_name: term
};
},
results: function (data, page) {

View File

@@ -606,7 +606,7 @@ def get_companies_json(records):
@exception_handler()
@record_filter(ignore='module')
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')