Commit bb9dc7f0 authored by Fabien Morin's avatar Fabien Morin

correct a mistake

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24130 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2f61e68
...@@ -60,13 +60,13 @@ if not application_number and id:\n ...@@ -60,13 +60,13 @@ if not application_number and id:\n
application_number = id\n application_number = id\n
\n \n
keep_items = {}\n keep_items = {}\n
state = document.getValidationState()\n
\n \n
# default view is history view\n # default view is history view\n
form_id=\'PDFDocument_viewHistory\'\n form_id=\'PDFDocument_viewHistory\'\n
\n \n
if application_number:\n if application_number:\n
document = context.portal_catalog.getResultValue(id=application_number)\n document = context.portal_catalog.getResultValue(id=application_number)\n
state = document.getValidationState()\n
if document is not None:\n if document is not None:\n
if state == \'draft\':\n if state == \'draft\':\n
form_id=\'view\'\n form_id=\'view\'\n
...@@ -128,9 +128,9 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes ...@@ -128,9 +128,9 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
<string>portal</string> <string>portal</string>
<string>N_</string> <string>N_</string>
<string>keep_items</string> <string>keep_items</string>
<string>form_id</string>
<string>document</string> <string>document</string>
<string>state</string> <string>state</string>
<string>form_id</string>
<string>None</string> <string>None</string>
<string>msg</string> <string>msg</string>
</tuple> </tuple>
......
384 385
\ No newline at end of file \ No newline at end of file
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