Commit 5b1c03c8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

sort delegated lists to make proxy field representations more stable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27022 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1b69ba45
......@@ -278,7 +278,7 @@ class ProxyField(ZMIField):
# now do actual update of values
values.update(result)
self.values = values
self.delegated_list = surcharge_list
self.delegated_list = sorted(surcharge_list)
# finally notify field of all changed values if necessary
for key in changed:
......@@ -357,7 +357,7 @@ class ProxyField(ZMIField):
# now do actual update of values
tales.update(result)
self.tales = tales
self.delegated_list = surcharge_list
self.delegated_list = sorted(surcharge_list)
# Put a default value on not delegated parameter
for key in result.keys():
if not self.values.has_key(key):
......@@ -382,7 +382,7 @@ class ProxyField(ZMIField):
if message_key in messages:
messages.pop(message_key)
self.message_values = messages
self.delegated_message_list = surcharge_list
self.delegated_message_list = sorted(surcharge_list)
if REQUEST:
message="Content changed."
return self.manage_messagesForm(self,REQUEST,
......
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