Commit d157fca5 authored by Christophe Dumez's avatar Christophe Dumez

- bug fix when no checkbox is checked

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6802 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b70d10a5
...@@ -68,9 +68,14 @@ ...@@ -68,9 +68,14 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
revisions_list = context.REQUEST[\'uids\']\n
file = context.REQUEST[\'file\']\n file = context.REQUEST[\'file\']\n
\n \n
if \'uids\' not in context.REQUEST.keys(): \n
context.REQUEST.set(\'portal_status_message\', \'You must select only TWO revisions!\')\n
return context.asContext(file=file).BusinessTemplate_viewSvnLog()\n
\n
revisions_list = context.REQUEST[\'uids\']\n
\n
if len(revisions_list) != 2:\n if len(revisions_list) != 2:\n
context.REQUEST.set(\'portal_status_message\', \'You must select only TWO revisions!\')\n context.REQUEST.set(\'portal_status_message\', \'You must select only TWO revisions!\')\n
return context.asContext(file=file).BusinessTemplate_viewSvnLog()\n return context.asContext(file=file).BusinessTemplate_viewSvnLog()\n
...@@ -135,8 +140,8 @@ return printed\n ...@@ -135,8 +140,8 @@ return printed\n
<string>_getitem_</string> <string>_getitem_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>revisions_list</string>
<string>file</string> <string>file</string>
<string>revisions_list</string>
<string>len</string> <string>len</string>
<string>svn_path</string> <string>svn_path</string>
</tuple> </tuple>
......
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