Commit da7f58b9 authored by Sebastien Robin's avatar Sebastien Robin

the target field should not be None, fail with explicit message

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32798 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c332e745
...@@ -1047,6 +1047,9 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -1047,6 +1047,9 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
proxy_field.values['field_id'] = target_field_id proxy_field.values['field_id'] = target_field_id
target_field = proxy_field.getTemplateField() target_field = proxy_field.getTemplateField()
if target_field is None:
raise ValueError("Unable to find template : %s.%s" % (
target_form_id, target_field_id))
# copy data # copy data
new_values = remove_same_value(copy(old_field, 'values'), new_values = remove_same_value(copy(old_field, 'values'),
......
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