Commit 918b76e0 authored by Fabien Morin's avatar Fabien Morin

fix a mistake : "or None" was missing, this was raising site error in case of...

fix a mistake : "or None" was missing, this was raising site error in case of no variation_colour_2 defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32056 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c9ed87bf
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
python: len(context.contentValues(portal_type=\'Apparel Model Colour Variation\')) >= 2 and context.contentValues(portal_type=\'Apparel Model Colour Variation\')[1].absolute_url() python: len(context.contentValues(portal_type=\'Apparel Model Colour Variation\')) >= 2 and context.contentValues(portal_type=\'Apparel Model Colour Variation\')[1].absolute_url() or None
]]></string> </value> ]]></string> </value>
</item> </item>
......
244 246
\ No newline at end of file \ No newline at end of file
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