From b300c230c34ca5192760c695b0a1afcafbc3505a Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Wed, 19 Jan 2011 13:48:09 +0000
Subject: [PATCH] Add condition to filter the documents according to your state
 also

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42460 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_domains/ung_domain/all_documents.xml   | 15 +++++++++++++++
 bt5/erp5_web_ung_theme/bt/revision                |  2 +-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents.xml b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents.xml
index 58c5eb52cd..d663705e9d 100644
--- a/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents.xml
+++ b/bt5/erp5_web_ung_theme/PathTemplateItem/portal_domains/ung_domain/all_documents.xml
@@ -26,6 +26,20 @@
                       </list>
                     </value>
                 </item>
+                <item>
+                    <key> <string>validation_state</string> </key>
+                    <value>
+                      <list>
+                        <string>draft</string>
+                        <string>published</string>
+                        <string>hidden</string>
+                        <string>released</string>
+                        <string>requested</string>
+                        <string>shared</string>
+                        <string>translated</string>
+                      </list>
+                    </value>
+                </item>
               </dictionary>
             </value>
         </item>
@@ -52,6 +66,7 @@
             <value>
               <tuple>
                 <string>portal_type</string>
+                <string>validation_state</string>
               </tuple>
             </value>
         </item>
diff --git a/bt5/erp5_web_ung_theme/bt/revision b/bt5/erp5_web_ung_theme/bt/revision
index 7b27b25197..83981c0e3a 100644
--- a/bt5/erp5_web_ung_theme/bt/revision
+++ b/bt5/erp5_web_ung_theme/bt/revision
@@ -1 +1 @@
-173
\ No newline at end of file
+175
\ No newline at end of file
-- 
2.30.9