diff --git a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_getImplicitPredecessorValueList.xml b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_getImplicitPredecessorValueList.xml
index 2bf21d15a70eefc449e9fe4611124748a4005184..f53629e9572dd6150367663ef7cb70830a2102c5 100644
--- a/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_getImplicitPredecessorValueList.xml
+++ b/bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_getImplicitPredecessorValueList.xml
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.PythonScripts.PythonScript</string>
-          <string>PythonScript</string>
-        </tuple>
-        <none/>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -88,10 +85,13 @@ if context.getLanguage() is not None:\n
   if context.getVersion() is not None:\n
     ss.append(context.getReference() + \'-\' + context.getLanguage() + \'-\' + context.getVersion())\n
 \n
+# Find from only document types\n
+document_type_list = context.getPortalDocumentTypeList()\n
+\n
 lst=[]\n
 for t in ss:\n
   kw = {\'full_text.SearchableText\':\'%\' + t + \'%\'}\n
-  lst += context.portal_catalog(**kw)\n
+  lst += context.portal_catalog(portal_type=document_type_list, **kw)\n
 \n
 return lst\n
 </string> </value>
@@ -148,9 +148,11 @@ return lst\n
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>None</string>
+                            <string>document_type_list</string>
                             <string>lst</string>
                             <string>_getiter_</string>
                             <string>t</string>
+                            <string>_inplacevar_</string>
                             <string>_apply_</string>
                           </tuple>
                         </value>
diff --git a/bt5/erp5_dms/bt/change_log b/bt5/erp5_dms/bt/change_log
index e4f255333560623c43885a927008f409150dac4d..217e97bd4de604d498bfb91531fd48e1b25f35e0 100644
--- a/bt5/erp5_dms/bt/change_log
+++ b/bt5/erp5_dms/bt/change_log
@@ -1,3 +1,6 @@
+2007-11-21 Yusei
+* Search predecessor only from document type documents.
+
 2007-11-21 Yusei
 * Disable search using xxx_relative_url argument in advanced search, language property is not stored as relation in a document. And fixed ambiguous table name in sql.
 
diff --git a/bt5/erp5_dms/bt/revision b/bt5/erp5_dms/bt/revision
index e8f7ef6cfa8fe83a9b5efce5ee7ee72ae33937cd..2764f7b00276b5033fc23bde689b6d3d4cc0fc50 100644
--- a/bt5/erp5_dms/bt/revision
+++ b/bt5/erp5_dms/bt/revision
@@ -1 +1 @@
-707
\ No newline at end of file
+708
\ No newline at end of file