Commit 96e3de87 authored by Tristan Cavelier's avatar Tristan Cavelier

CUSTOM [erp5_tristan] repr: fix issue on editing non text_content

parent 3fb5aaa2
......@@ -49,6 +49,12 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -57,6 +63,10 @@
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -86,4 +96,17 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.hasProperty("text_content") and "text_content" or context.hasProperty("data") and "data" or ""</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -122,7 +122,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.Base_createReprTextFromBytes(context.getTextContent() or context.getData() or "")</string> </value>
<value> <string>python: context.Base_createReprTextFromBytes(context.getProperty("text_content") or context.getProperty("data") or "")</string> </value>
</item>
</dictionary>
</pickle>
......
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