diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_redirectToDialogAction.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_redirectToDialogAction.xml
index 82e8238f94d26f6cac92173c6255140e493c0208..fc8e63747f0ae2948ea7563943999a7ac85387d2 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_redirectToDialogAction.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_redirectToDialogAction.xml
@@ -65,8 +65,17 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>return container.REQUEST.RESPONSE.redirect(dialog_action_url)\n
-</string> </value>
+            <value> <string encoding="cdata"><![CDATA[
+
+if \'?\' in dialog_action_url:\n
+  dialog_action_url = \'%s&form_id=%s\' % (dialog_action_url, form_id)\n
+else:\n
+  dialog_action_url = \'%s?form_id=%s\' % (dialog_action_url, form_id)\n
+\n
+return container.REQUEST.RESPONSE.redirect(dialog_action_url)\n
+
+
+]]></string> </value>
         </item>
         <item>
             <key> <string>_code</string> </key>
@@ -88,7 +97,7 @@
         </item>
         <item>
             <key> <string>_params</string> </key>
-            <value> <string>dialog_action_url</string> </value>
+            <value> <string>dialog_action_url, form_id=\'\'</string> </value>
         </item>
         <item>
             <key> <string>errors</string> </key>
@@ -108,13 +117,14 @@
                   <dictionary>
                     <item>
                         <key> <string>co_argcount</string> </key>
-                        <value> <int>1</int> </value>
+                        <value> <int>2</int> </value>
                     </item>
                     <item>
                         <key> <string>co_varnames</string> </key>
                         <value>
                           <tuple>
                             <string>dialog_action_url</string>
+                            <string>form_id</string>
                             <string>_getattr_</string>
                             <string>container</string>
                           </tuple>
@@ -128,7 +138,9 @@
         <item>
             <key> <string>func_defaults</string> </key>
             <value>
-              <none/>
+              <tuple>
+                <string></string>
+              </tuple>
             </value>
         </item>
         <item>
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 84ccffd556a8b77cbaeff0c840b92e32364e3872..eed0d1a4ad7e661b71455c98ccdb75bad624088c 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-505
\ No newline at end of file
+506
\ No newline at end of file