Commit b4276128 authored by Aurel's avatar Aurel

use a default order for date field if no order found


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7731 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3f4c8b3
......@@ -654,6 +654,10 @@ class PatchedDateTimeWidget(DateTimeWidget):
order = [('month', month),
('day', day),
('year', year)]
else:
order = [('year', year),
('month', month),
('day', day)]
result = []
for sub_field_name, sub_field_value in order:
result.append(field.render_sub_field(sub_field_name,
......
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