Commit 680a4b7f authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_erp5: Use _value makes the API resolves previous values

    This makes a direct edit w/o introspect previous value.
parent 85e411bf
...@@ -46,7 +46,7 @@ if allocation_scope in ['open/public', 'open/subscription']: ...@@ -46,7 +46,7 @@ if allocation_scope in ['open/public', 'open/subscription']:
elif allocation_scope == 'open/personal': elif allocation_scope == 'open/personal':
# reset friends to self and update in place # reset friends to self and update in place
edit_kw['subject_list'] = [self_email] edit_kw['subject_list'] = [self_email]
edit_kw['destination_section_value'] = self_person edit_kw['destination_section'] = self_person.getRelativeUrl()
else: else:
subject_list = computer.getSubjectList() subject_list = computer.getSubjectList()
if self_email not in subject_list: if self_email not in subject_list:
......
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