From 9a7c1a548554a4f167649be285e2bc98e6636a21 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Wed, 28 Feb 2007 20:11:11 +0000
Subject: [PATCH] Make sure ignore_layout is not lost when clicking on a link
 generated in a listbox.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13114 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/ListBox.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 229474beda..d423c67fd0 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -1911,6 +1911,7 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
     url_column_dict = dict(self.renderer.getUrlColumnList())
     selection = self.renderer.getSelection()
     selection_name = self.renderer.getSelectionName()
+    ignore_layout = self.renderer.request.get('ignore_layout', 0)
 
     html_list = []
 
@@ -1980,7 +1981,9 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
                 error = sys.exc_info())
         else:
           try:
-            url = '%s/view?selection_index=%s&amp;selection_name=%s&amp;reset:int=1' % (brain.absolute_url(), self.index, selection_name)
+            url = '%s/view?selection_index=%s&amp;selection_name=%s&amp;ignore_layout:int=%s&amp;reset:int=1' % (
+                      brain.absolute_url(),
+                      self.index, selection_name, ignore_layout)
           except AttributeError:
             pass
 
-- 
2.30.9