Commit dfe75ef3 authored by Fabien Morin's avatar Fabien Morin

bring some correction : get_value is better because getDescription dont take

TALES into account. get_value render field or TALES content, so we can use
description field to describe the type of content (Identity Picture) or the
content the content (John Simth). If no description is given, the title (wich
is mandatory) is used.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19801 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 704f4242
...@@ -75,7 +75,8 @@ class ImageFieldWidget(Widget.TextWidget): ...@@ -75,7 +75,8 @@ class ImageFieldWidget(Widget.TextWidget):
""" """
# Url is already defined in value # Url is already defined in value
image = value image = value
description = field.getDescription() or 'field_description' description = field.get_value('description') or \
field.get_value('title')
display = field.get_value('image_display') display = field.get_value('image_display')
format = field.get_value('image_format') format = field.get_value('image_format')
resolution = field.get_value('image_resolution') resolution = field.get_value('image_resolution')
......
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