From d656716a392641afff62abefdc35c1cb668d4d74 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 23 Sep 2008 12:32:23 +0000
Subject: [PATCH] fix wrong name used as key for data_dict. As a result, broken
 image was shown when the sections had an empty logo

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

diff --git a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_viewAsODTStyles.xml b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_viewAsODTStyles.xml
index ae8439a258..958fd42ce4 100644
--- a/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_viewAsODTStyles.xml
+++ b/bt5/erp5_invoicing/SkinTemplateItem/portal_skins/erp5_invoicing/Invoice_viewAsODTStyles.xml
@@ -315,8 +315,8 @@ AAA=</string> </value>
                     en_of python: unicode(here.Base_translateString(orig_of, lang=default_language), \'utf-8\');\n
                     my_of python: unicode(here.Base_translateString(orig_of), \'utf-8\');\n
                     image_path python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_image_path\'] or (data_dict[\'source_decision_image_path\'] or data_dict[\'source_section_image_path\']);\n
-                    image_width python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_image_width\'] or (data_dict[\'source_decision_image_width\'] or data_dict[\'source_section_image_path\']);\n
-                    image_height python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_image_height\'] or (data_dict[\'source_decision_image_height\'] or data_dict[\'source_section_image_path\'])">\n
+                    image_width python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_image_width\'] or (data_dict[\'source_decision_image_width\'] or data_dict[\'source_section_image_width\']);\n
+                    image_height python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_image_height\'] or (data_dict[\'source_decision_image_height\'] or data_dict[\'source_section_image_height\'])">\n
         <table:table table:name="Tableau4" table:style-name="Tableau4">\n
           <table:table-column table:style-name="Tableau4.A"/>\n
           <table:table-column table:style-name="Tableau4.B"/>\n
diff --git a/bt5/erp5_invoicing/bt/revision b/bt5/erp5_invoicing/bt/revision
index 50f0bcd375..d55f9f7457 100644
--- a/bt5/erp5_invoicing/bt/revision
+++ b/bt5/erp5_invoicing/bt/revision
@@ -1 +1 @@
-135
\ No newline at end of file
+136
\ No newline at end of file
-- 
2.30.9