Commit 78495a52 authored by Ivan Tyagov's avatar Ivan Tyagov

Make ParallelListField always show default empty ListField at bottom not...

Make ParallelListField always show default empty ListField at bottom not depending on form's validation status. This change fixes bug #727.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24406 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e1c303c
...@@ -79,11 +79,10 @@ for value in value_list:\n ...@@ -79,11 +79,10 @@ for value in value_list:\n
\n \n
request = context.REQUEST\n request = context.REQUEST\n
\n \n
if request.get(\'field_errors\', {}) == {}:\n new_dict = default_sub_field_property_dict.copy()\n
new_dict = default_sub_field_property_dict.copy()\n new_dict[\'title\'] = \' \'\n
new_dict[\'title\'] = \' \'\n new_dict[\'key\'] = str(z)\n
new_dict[\'key\'] = str(z)\n sub_field_list.append(new_dict)\n
sub_field_list.append(new_dict)\n
\n \n
if len(sub_field_list):\n if len(sub_field_list):\n
sub_field_list[0][\'title\'] = default_sub_field_property_dict[\'title\']\n sub_field_list[0][\'title\'] = default_sub_field_property_dict[\'title\']\n
......
2008-10-30 ivan
* make ParallelListField always show default empty ListField at bottom not depending on form's validation status
2008-10-24 yusei 2008-10-24 yusei
* Cleaned up Base_getTranslatedWorkflowStateItemList and separate generic function to Base_getWorkflowStateItemList. * Cleaned up Base_getTranslatedWorkflowStateItemList and separate generic function to Base_getWorkflowStateItemList.
......
1007 1010
\ No newline at end of file \ No newline at end of file
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