Commit e95bf05a authored by Jérome Perrin's avatar Jérome Perrin

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
parent a303f45f
...@@ -156,7 +156,10 @@ try:\n ...@@ -156,7 +156,10 @@ try:\n
for k, v in kw.items() :\n for k, v in kw.items() :\n
if v is not None :\n if v is not None :\n
cleanedup_kw[k] = v\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 cannot_redirect = 1\n
\n \n
# if we cannot redirect, then call the form directly.\n # if we cannot redirect, then call the form directly.\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment