Commit 67193348 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

always set selection_name with self.name.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13715 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b6fa7437
############################################################################## ##############################################################################
# #
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2002,2007 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com> # Jean-Paul Smets-Solanes <jp@nexedi.com>
# #
# WARNING: This program as such is intended to be used by professional # WARNING: This program as such is intended to be used by professional
...@@ -192,8 +192,8 @@ class Selection(Acquisition.Implicit, Traversable, Persistent): ...@@ -192,8 +192,8 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
kw['sort_on'] = sort_on kw['sort_on'] = sort_on
elif kw.has_key('sort_on'): elif kw.has_key('sort_on'):
del kw['sort_on'] # We should not sort if no sort was defined del kw['sort_on'] # We should not sort if no sort was defined
if not kw.has_key('selection_name'): # We should always set selection_name with self.name
kw['selection_name'] = self.name kw['selection_name'] = self.name
if method is not None: if method is not None:
if callable(method): if callable(method):
if self.domain is not None and self.report is not None: if self.domain is not None and self.report is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment