From d88148b9082bf85f4287058a79091d407873bd48 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Tue, 23 Feb 2010 12:32:33 +0000
Subject: [PATCH] cast to int like it is in Base_edit. This avoid ErrorValue :
 "An integer was expected in the value 'True'" on the form validation

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

diff --git a/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_editContentTranslationMessage.xml b/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_editContentTranslationMessage.xml
index fb118f95ee..9b8e5ba1e8 100644
--- a/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_editContentTranslationMessage.xml
+++ b/bt5/erp5_content_translation/SkinTemplateItem/portal_skins/erp5_content_translation/Base_editContentTranslationMessage.xml
@@ -125,7 +125,8 @@ def updateTranslation():\n
 context.edit()#invoke interaction workflows etc.\n
 updateTranslation()\n
 \n
-\n
+ignore_layout = int(ignore_layout)\n
+editable_mode = int(editable_mode)\n
 redirect_url = \'%s/%s?ignore_layout:int=%s&editable_mode:int=%s&portal_status_message=%s\' % (\n
   context.absolute_url(),\n
   form_id,\n
@@ -212,6 +213,7 @@ return result\n
                             <string>value</string>
                             <string>callable</string>
                             <string>updateTranslation</string>
+                            <string>int</string>
                             <string>result</string>
                           </tuple>
                         </value>
diff --git a/bt5/erp5_content_translation/bt/revision b/bt5/erp5_content_translation/bt/revision
index 3cacc0b93c..ca7bf83ac5 100644
--- a/bt5/erp5_content_translation/bt/revision
+++ b/bt5/erp5_content_translation/bt/revision
@@ -1 +1 @@
-12
\ No newline at end of file
+13
\ No newline at end of file
-- 
2.30.9