From 8e19be1b27cf14cf0f76d7c4bcd81e520ac95407 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 4 Apr 2013 14:58:05 +0200 Subject: Forms (operations, context records, files): add search by parcel (refs #575) --- ishtar_common/widgets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ishtar_common/widgets.py') diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py index ecc48a1e8..1fd0b6ac0 100644 --- a/ishtar_common/widgets.py +++ b/ishtar_common/widgets.py @@ -219,8 +219,8 @@ class JQueryJqGrid(forms.RadioSelect): rendered += "\n

%s

\n" % unicode(_("Search and select an item")) extra_cols = [] col_names, col_idx = [], [] - for k in self.form.fields: - field = self.form.fields[k] + for k in self.form.get_input_ids(): + #field = self.form.fields[k] col_idx.append(u'"%s"' % k) for field_name in getattr(self.associated_model, self.table_cols): field = self.associated_model @@ -292,7 +292,7 @@ class JQueryJqGrid(forms.RadioSelect): } } var mygrid = jQuery("#grid_%(name)s"); - var url = "%(source)s?submited=1&" + data; + var url = "%(source)s?submited=1&" + data; mygrid.setGridParam({url:url}); mygrid.trigger("reloadGrid"); return false; -- cgit v1.2.3