From 2c5c9be55244225062fac6bbbaf23f744373996e Mon Sep 17 00:00:00 2001
From: Tristan Cavelier <tristan.cavelier@nexedi.com>
Date: Fri, 15 Jan 2016 09:57:58 -0500
Subject: [PATCH] erp5_svg_editor: fix save should add history entry

---
 .../portal_skins/erp5_svg_editor/Base_setSVGTextContent.xml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_setSVGTextContent.xml b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_setSVGTextContent.xml
index 18e2c3ca4e..6d111cf9c3 100644
--- a/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_setSVGTextContent.xml
+++ b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_setSVGTextContent.xml
@@ -57,9 +57,11 @@ text_content = context.REQUEST.get("text")\n
 if text_content is not None:\n
   portal_type = context.getPortalType()\n
   if portal_type in ("Web Illustration",):\n
-    context.setTextContent(text_content)\n
+    getattr(context, "setTextContent")\n
+    context.edit(text_content=text_content)\n
   elif portal_type in ("Image",):\n
-    context.setData(text_content)\n
+    getattr(context, "setData")\n
+    context.edit(data=text_content)\n
 </string> </value>
         </item>
         <item>
-- 
2.30.9