The anchor is now correctly generated for a saved relational field during inline edit with the correct where clause. Trying to fix the bug with ['ForeignKeyMaxLimit']

This commit is contained in:
ninadsp
2010-07-31 01:34:47 +05:30
parent 5996773bf7
commit 6547920e8a
2 changed files with 22 additions and 10 deletions

View File

@@ -243,7 +243,7 @@ $(document).ready(function() {
// Collect values of all fields to submit, we don't know which changed
var params_to_submit = {};
var relation_fields = new Array();
var relation_fields = {};
var transform_fields = {};
var transformation_fields = false;
@@ -268,7 +268,7 @@ $(document).ready(function() {
this_field_params[field_name] = $(this).find('select').val();
if($(this).is('.relation')) {
relation_fields.push(field_name);
$.extend(relation_fields, this_field_params);
}
}
@@ -284,10 +284,8 @@ $(document).ready(function() {
sql_query = sql_query.replace(/,\s$/, '');
sql_query += ' WHERE ' + where_clause;
var rel_fields_list = '';
if(relation_fields.length > 0) {
rel_fields_list = relation_fields.join();
}
var rel_fields_list = $.param(relation_fields);
var transform_fields_list = $.param(transform_fields);
// Make the Ajax post after setting all parameters