From bb9dc7f05640a39a52d6dcb29aa47f0c80d3bd93 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Fri, 10 Oct 2008 09:11:52 +0000
Subject: [PATCH] correct a mistake

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24130 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_egov/EGov_goToDocument.xml              | 4 ++--
 bt5/erp5_egov/bt/revision                                     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_goToDocument.xml b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_goToDocument.xml
index 940dc51e49..6caa35fc9c 100644
--- a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_goToDocument.xml
+++ b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_goToDocument.xml
@@ -60,13 +60,13 @@ if not application_number and id:\n
   application_number = id\n
 \n
 keep_items = {}\n
-state = document.getValidationState()\n
 \n
 # default view is history view\n
 form_id=\'PDFDocument_viewHistory\'\n
 \n
 if application_number:\n
   document = context.portal_catalog.getResultValue(id=application_number)\n
+  state = document.getValidationState()\n
   if document is not None:\n
     if state == \'draft\':\n
       form_id=\'view\'\n
@@ -128,9 +128,9 @@ return context.Base_redirect(form_id=\'view\', keep_items = {\'portal_status_mes
                             <string>portal</string>
                             <string>N_</string>
                             <string>keep_items</string>
+                            <string>form_id</string>
                             <string>document</string>
                             <string>state</string>
-                            <string>form_id</string>
                             <string>None</string>
                             <string>msg</string>
                           </tuple>
diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision
index e41567feb8..1380537bfd 100644
--- a/bt5/erp5_egov/bt/revision
+++ b/bt5/erp5_egov/bt/revision
@@ -1 +1 @@
-384
\ No newline at end of file
+385
\ No newline at end of file
-- 
2.30.9