Commit e7881c5a authored by Jérome Perrin's avatar Jérome Perrin

provide a default value when no preference is active (this is to fix unit test failure)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21457 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 83fc5908
......@@ -269,7 +269,7 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value>
<tal:block tal:define="global max_size python:9;"/>\n
<tal:block tal:condition="python: field_type == \'ImageField\'">\n
<text:p text:style-name=\'field-content\'\n
tal:define="preferred_width python: preference_tool.getPreference(\'preferred_%s_image_width\' % (field.get_value(\'image_display\')));\n
tal:define="preferred_width python: preference_tool.getPreference(\'preferred_%s_image_width\' % (field.get_value(\'image_display\')), 100);\n
width python:(preferred_width / 20.) &lt; max_size and (preferred_width / 20.) or max_size">\n
<tal:block>\n
<office:include_img tal:attributes="width width;\n
......
50
\ No newline at end of file
51
\ 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