From c689463f8bd95c16292f194098428b9764d9f033 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Wed, 25 Aug 2010 09:40:35 +0000
Subject: [PATCH] modify getSearchableText(): * support list properties. * cast
 to str explicitly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38011 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Base.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py
index 61b2cc0163..9b89f4bd2b 100644
--- a/product/ERP5Type/Base.py
+++ b/product/ERP5Type/Base.py
@@ -3221,8 +3221,11 @@ class Base( CopyContainer,
         if method is not None:
           method_value = method()
           if method_value is not None:
-            searchable_text_list.append(method_value)
-      searchable_text = ' '.join(searchable_text_list)
+            if isinstance(method_value, (list, tuple)):
+              searchable_text_list.extend(method_value)
+            else:
+              searchable_text_list.append(method_value)
+      searchable_text = ' '.join([str(x) for x in searchable_text_list])
       return searchable_text
 
   # Compatibility with CMF Catalog / CPS sites
-- 
2.30.9