From 3eea55d1421973545778331c9d941d94d784234f Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Sat, 17 Jun 2006 21:39:29 +0000 Subject: [PATCH] The sort_on parameter must be stored in kw instead of self.params. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7834 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/Selection.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/product/ERP5Form/Selection.py b/product/ERP5Form/Selection.py index c1440b1695..0b10d36abc 100644 --- a/product/ERP5Form/Selection.py +++ b/product/ERP5Form/Selection.py @@ -190,12 +190,11 @@ class Selection(Acquisition.Implicit, Traversable, Persistent): if len(sort_on) == 0: sort_on = getattr(self, 'default_sort_on', []) if len(sort_on) > 0: - self.params['sort_on'] = sort_on - elif self.params.has_key('sort_on'): - del self.params['sort_on'] + kw['sort_on'] = sort_on + elif kw.has_key('sort_on'): + del kw.params['sort_on'] if method is not None: if callable(method): - #LOG('Selection', 0, "self.params = %s" % repr(self.params)) if self.domain is not None and self.report is not None: result = method(selection_domain = self.domain, selection_report = self.report, selection=self, **kw) -- 2.30.9