From d74f3ab19b87864ae52577900e01ee5751b26086 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Sat, 20 Jun 2009 15:54:07 +0000
Subject: [PATCH] the default value of ignore_layout should be 1 for non-web
 mode.

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

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index 43a5552842..a06f1e40cc 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -2131,7 +2131,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine):
     url_column_dict = dict(renderer.getUrlColumnList())
     selection = renderer.getSelection()
     selection_name = renderer.getSelectionName()
-    ignore_layout = int(request.get('ignore_layout', 0))
+    ignore_layout = int(request.get('ignore_layout', \
+                        not request.get('is_web_mode', False) and 1 or 0))
     ui_domain = 'erp5_ui'
 
     html_list = []
-- 
2.30.9