From e95bf05af7b06dd55bd8e1d19b0cca8e706c113f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 25 May 2006 13:00:51 +0000 Subject: [PATCH] add missing len() that caused Base_callDialogMethod to always call the script instead of redirecting when possible git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7498 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_core/Base_callDialogMethod.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml index 79ee0ab610..ac5378ce07 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_callDialogMethod.xml @@ -156,7 +156,10 @@ try:\n for k, v in kw.items() :\n if v is not None :\n cleanedup_kw[k] = v\n - if make_query(cleanedup_kw) > 2000 :\n +\n + # If url is too long, we do not redirecting\n + # to avoir crash <christophe@nexedi.com>\n + if len(make_query(cleanedup_kw)) > 2000:\n cannot_redirect = 1\n \n # if we cannot redirect, then call the form directly.\n -- 2.30.9