From 2c0ce2cf0b3282fe54dbf0e30038a0824731b8d2 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Tue, 27 Mar 2007 06:55:18 +0000
Subject: [PATCH] pass selection_name in calling a method in
 Selection.__call__().

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13691 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/Selection.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/product/ERP5Form/Selection.py b/product/ERP5Form/Selection.py
index 0a94931e68..d532e66f7b 100644
--- a/product/ERP5Form/Selection.py
+++ b/product/ERP5Form/Selection.py
@@ -196,13 +196,13 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
           if callable(method):
             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)
+                              selection_report = self.report, selection=self, selection_name=self.name, **kw)
             elif self.domain is not None:
-              result = method(selection_domain = self.domain, selection=self, **kw)
+              result = method(selection_domain = self.domain, selection=self, selection_name=self.name, **kw)
             elif self.report is not None:
-              result = method(selection_report = self.report, selection=self, **kw)
+              result = method(selection_report = self.report, selection=self, selection_name=self.name, **kw)
             else:
-              result = method(selection=self, **kw)
+              result = method(selection=self, selection_name=self.name, **kw)
             return result
           else:
             return []
-- 
2.30.9