Commit 27d976db authored by Aurel's avatar Aurel

in dialog that update fields from glossary, display current description of the field

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21636 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab221da9
......@@ -114,6 +114,7 @@ for business_field in business_field_list:\n
line = newTempBase(context, \'tmp_glossary_field_%s\' % c)\n
c += 1\n
field_title = field.get_value(\'title\')\n
field_description = field.get_value(\'description\')\n
field_note_list = []\n
if field.meta_type==\'ProxyField\':\n
if field.is_delegated(\'title\') is True:\n
......@@ -125,6 +126,7 @@ for business_field in business_field_list:\n
field_path=field_path,\n
field_edit_url = \'%s/manage_main\' % field.absolute_url(),\n
field_note=\' \'.join(field_note_list),\n
field_description=field_description,\n
reference=reference,\n
term_list=term_list,\n
field_meta_type=field.meta_type\n
......@@ -206,6 +208,7 @@ return line_list\n
<string>line</string>
<string>_inplacevar_</string>
<string>field_title</string>
<string>field_description</string>
<string>field_note_list</string>
<string>True</string>
<string>None</string>
......
......@@ -123,12 +123,13 @@ for business_field in business_field_list:\n
else: # type == \'action\'\n
wf_item_path = \'%s/transitions/%s_actbox_name\' % (wf_item.aq_parent.aq_parent.id, wf_item.id)\n
wf_item_title = wf_item.actbox_name\n
\n
wf_item_description = wf_item.description\n
\n
line.edit(wf_item_path=wf_item_path,\n
wf_item_type=type,\n
wf_item_title=wf_item_title,\n
wf_item_edit_url = "%s/manage_properties" % wf_item.absolute_url(),\n
wf_item_description = wf_item_description,\n
reference=reference,\n
term_list=term_list\n
)\n
......@@ -212,6 +213,7 @@ return line_list\n
<string>_inplacevar_</string>
<string>wf_item_path</string>
<string>wf_item_title</string>
<string>wf_item_description</string>
</tuple>
</value>
</item>
......
......@@ -348,6 +348,10 @@
<string>field_title</string>
<string>Title</string>
</tuple>
<tuple>
<string>field_description</string>
<string>Current Description</string>
</tuple>
<tuple>
<string>term</string>
<string>Term</string>
......
......@@ -344,6 +344,10 @@
<string>wf_item_title</string>
<string>Title</string>
</tuple>
<tuple>
<string>wf_item_description</string>
<string>Current Description</string>
</tuple>
<tuple>
<string>term</string>
<string>Term</string>
......
244
\ No newline at end of file
246
\ 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