From ceb343ce2d0f5e0e6daa65992e6aeb27b23d753c Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Mon, 28 Jul 2008 13:56:45 +0000
Subject: [PATCH] Now is possible to define a set of listboxes that will used
 in dialog mode. This allow the user chooser (if len > 1) which listbox
 columns/search, he prefer use to find a certain object.

The approach is diferent of relation_form and define columns but still compatible with previous implementation. If the [multi]relation fields are not updated, be previous behaviour will still working.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22689 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_core/Base_getRelatedObjectParameter.xml         | 9 ++++++++-
 product/ERP5/bootstrap/erp5_core/bt/revision             | 2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getRelatedObjectParameter.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getRelatedObjectParameter.xml
index 2f897c7004..7017e96a1d 100644
--- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getRelatedObjectParameter.xml
+++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getRelatedObjectParameter.xml
@@ -74,7 +74,8 @@ if parameter is not None:\n
   result = listbox.get_value(parameter)\n
 \n
   if result in [ [], (), None, \'\']:\n
-    \n
+    if parameter == \'proxy_listbox_ids\':\n
+      return context.REQUEST.get(\'proxy_listbox_ids\', [])\n
     result = getattr(context, dialog_id, None).get_field( \'listbox\' ).get_orig_value(parameter)\n
 \n
 return result\n
@@ -155,6 +156,12 @@ return result\n
             <key> <string>id</string> </key>
             <value> <string>Base_getRelatedObjectParameter</string> </value>
         </item>
+        <item>
+            <key> <string>uid</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
         <item>
             <key> <string>warnings</string> </key>
             <value>
diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision
index 8cef75946f..bd19a3c6e3 100644
--- a/product/ERP5/bootstrap/erp5_core/bt/revision
+++ b/product/ERP5/bootstrap/erp5_core/bt/revision
@@ -1 +1 @@
-919
\ No newline at end of file
+921
\ No newline at end of file
-- 
2.30.9