Commit 0c348bab authored by Sebastien Robin's avatar Sebastien Robin

display the value from the object on editable fields instead of the value of the requet


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@675 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b42ecf80
...@@ -1058,7 +1058,8 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')"> ...@@ -1058,7 +1058,8 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
else: else:
error_css = '' error_css = ''
error_message = '' error_message = ''
display_value = REQUEST.get('field_%s' % key, attribute_value) #display_value = REQUEST.get('field_%s' % key, attribute_value)
display_value = attribute_value # XXX Make sure this is ok
cell_body = my_field.render(value = display_value, REQUEST = o, key = key) cell_body = my_field.render(value = display_value, REQUEST = o, key = key)
# We use REQUEST which is not so good here # We use REQUEST which is not so good here
# This prevents from using standard display process # This prevents from using standard display process
......
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