Commit 770e444b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use getAcquiredValueList instead of getValueList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1211 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b6210cfd
...@@ -19,7 +19,7 @@ form = getattr(context,form_id) ...@@ -19,7 +19,7 @@ form = getattr(context,form_id)
field = form.get_field(field_id) field = form.get_field(field_id)
base_category = field.get_value('base_category') base_category = field.get_value('base_category')
portal_type = map(lambda x:x[0],field.get_value('portal_type')) portal_type = map(lambda x:x[0],field.get_value('portal_type'))
jump_reference_list = context.getValueList(base_category, portal_type=portal_type) jump_reference_list = context.getAcquiredValueList(base_category, portal_type=portal_type)
if len(jump_reference_list)==1: if len(jump_reference_list)==1:
jump_reference = jump_reference_list[0] jump_reference = jump_reference_list[0]
return request[ 'RESPONSE' ].redirect( '%s/view' % jump_reference.absolute_url() ) return request[ 'RESPONSE' ].redirect( '%s/view' % jump_reference.absolute_url() )
......
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