Commit 542cbe87 authored by Yoshinori Okuji's avatar Yoshinori Okuji

attribute_original_value must be set before modifying attribute_value.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5288 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a73588ae
...@@ -1769,8 +1769,8 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')"> ...@@ -1769,8 +1769,8 @@ onChange="submitAction(this.form,'%s/portal_selections/setReportRoot')">
attribute_original_value = None attribute_original_value = None
attribute_value = '' attribute_value = ''
elif type(attribute_value) != type(u''): elif type(attribute_value) != type(u''):
attribute_value = unicode(str(attribute_value), 'utf-8')
attribute_original_value = attribute_value attribute_original_value = attribute_value
attribute_value = unicode(str(attribute_value), 'utf-8')
if sql in editable_column_ids and form.has_field('%s_%s' % (field.id, alias)) and not is_summary: if sql in editable_column_ids and form.has_field('%s_%s' % (field.id, alias)) and not is_summary:
key = my_field.id + '_%s' % o.uid key = my_field.id + '_%s' % o.uid
if field_errors.has_key(key): if field_errors.has_key(key):
......
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