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

Bug fix: Return floats as floats when render_format is "list". (usefull for reports)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3562 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 70a2d2ff
...@@ -1662,7 +1662,7 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')"> ...@@ -1662,7 +1662,7 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
pass pass
else: else:
#attribute_original_value = attribute_value #attribute_original_value = attribute_value
attribute_value = "%.2f" % attribute_value attribute_value = float("%.2f" % attribute_value)
td_align = "right" td_align = "right"
elif type(attribute_value) is type(1): elif type(attribute_value) is type(1):
attribute_original_value = attribute_value attribute_original_value = attribute_value
......
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