Commit 2c5c9be5 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_svg_editor: fix save should add history entry

parent dbe985c6
...@@ -57,9 +57,11 @@ text_content = context.REQUEST.get("text")\n ...@@ -57,9 +57,11 @@ text_content = context.REQUEST.get("text")\n
if text_content is not None:\n if text_content is not None:\n
portal_type = context.getPortalType()\n portal_type = context.getPortalType()\n
if portal_type in ("Web Illustration",):\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 elif portal_type in ("Image",):\n
context.setData(text_content)\n getattr(context, "setData")\n
context.edit(data=text_content)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment