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

In Formulator, "alternate_name" is not meant to be use in the alt attribute of

an HTML img. For consistency with ImageField, use field description or field
title instead.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23744 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18590112
...@@ -415,7 +415,7 @@ class OOoChartWidget(Widget.Widget): ...@@ -415,7 +415,7 @@ class OOoChartWidget(Widget.Widget):
""" """
title = field.get_value('title') title = field.get_value('title')
alternate_name = field.get_value('alternate_name') alt = field.get_value('description') or title
form = field.aq_parent form = field.aq_parent
# Find the applicable context # Find the applicable context
...@@ -439,7 +439,7 @@ class OOoChartWidget(Widget.Widget): ...@@ -439,7 +439,7 @@ class OOoChartWidget(Widget.Widget):
format, format,
display, display,
title, title,
alternate_name) alt)
return main_content return main_content
elif format == 'raw': elif format == 'raw':
main_content = '''<div class="OOoChartContent"> main_content = '''<div class="OOoChartContent">
......
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