author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 29 Sep 2009 12:44:06 +0200 | |
branch | stable |
changeset 3517 | 8832e231fad7 |
parent 3516 | 5f18e71e3d42 |
child 3518 | 11ce4682187d |
--- a/web/views/forms.py Tue Sep 29 12:43:40 2009 +0200 +++ b/web/views/forms.py Tue Sep 29 12:44:06 2009 +0200 @@ -305,9 +305,9 @@ searchedvalues = ['%s:%s:%s' % (field.name, eid, field.role) for eid in value] # remove associated __linkto hidden fields - for field in self.fields_by_name('__linkto'): + for field in self.root_form.fields_by_name('__linkto'): if field.initial in searchedvalues: - self.remove_field(field) + self.root_form.remove_field(field) else: value = None return value