From a5cc036a6ff2d35dc13559715a065ea3a51a4cfc Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Wed, 2 Apr 2008 10:19:58 +0000
Subject: [PATCH] Always pass reset=1 to ProjectLine_viewTaskList, in order to
 recalculate the default parameters of the listbox.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20267 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_types/Project%20Line/task_list.xml  |  2 +-
 .../ProjectLine_viewTaskList/listbox.xml       | 18 +++++++++---------
 bt5/erp5_project/bt/revision                   |  2 +-
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/bt5/erp5_project/ActionTemplateItem/portal_types/Project%20Line/task_list.xml b/bt5/erp5_project/ActionTemplateItem/portal_types/Project%20Line/task_list.xml
index 2dcaf60395..faf5e4d3c6 100644
--- a/bt5/erp5_project/ActionTemplateItem/portal_types/Project%20Line/task_list.xml
+++ b/bt5/erp5_project/ActionTemplateItem/portal_types/Project%20Line/task_list.xml
@@ -77,7 +77,7 @@
       <dictionary>
         <item>
             <key> <string>text</string> </key>
-            <value> <string>string:${object_url}/ProjectLine_viewTaskList</string> </value>
+            <value> <string>string:${object_url}/ProjectLine_viewTaskList?reset:int=1</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_viewTaskList/listbox.xml b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_viewTaskList/listbox.xml
index 3714ff5eb5..319effb763 100644
--- a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_viewTaskList/listbox.xml
+++ b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/ProjectLine_viewTaskList/listbox.xml
@@ -120,7 +120,7 @@
                     <value> <int>1</int> </value>
                 </item>
                 <item>
-                    <key>                 <string>all_columns</string> </key>
+                    <key> <string>all_columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -182,7 +182,7 @@
                     </value>
                 </item>
                 <item>
-                    <key>                 <string>columns</string> </key>
+                    <key> <string>columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -221,7 +221,7 @@
                     </value>
                 </item>
                 <item>
-                    <key>                 <string>default_params</string> </key>
+                    <key> <string>default_params</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -232,7 +232,7 @@
                     </value>
                 </item>
                 <item>
-                    <key>                 <string>editable_columns</string> </key>
+                    <key> <string>editable_columns</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -255,13 +255,13 @@
                     <value> <string>Base_viewFieldLibrary</string> </value>
                 </item>
                 <item>
-                    <key>                 <string>list_method</string> </key>
+                    <key> <string>list_method</string> </key>
                     <value>
                       <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
                     </value>
                 </item>
                 <item>
-                    <key>                 <string>portal_types</string> </key>
+                    <key> <string>portal_types</string> </key>
                     <value>
                       <list>
                         <tuple>
@@ -272,7 +272,7 @@
                     </value>
                 </item>
                 <item>
-                    <key>                 <string>selection_name</string> </key>
+                    <key> <string>selection_name</string> </key>
                     <value> <string>project_task_selection</string> </value>
                 </item>
                 <item>
@@ -280,7 +280,7 @@
                     <value> <string>Click to edit the target</string> </value>
                 </item>
                 <item>
-                    <key>                 <string>title</string> </key>
+                    <key> <string>title</string> </key>
                     <value> <string>Tasks</string> </value>
                 </item>
               </dictionary>
@@ -300,7 +300,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: [(\'checked_permission\', \'View\'), (\'source_project_uid\', here.getUid())]</string> </value>
+            <value> <string>python: [(\'source_project_uid\', here.getUid())]</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision
index 1b6db1e863..a8114de9cf 100644
--- a/bt5/erp5_project/bt/revision
+++ b/bt5/erp5_project/bt/revision
@@ -1 +1 @@
-460
\ No newline at end of file
+462
\ No newline at end of file
-- 
2.30.9