Commit f97f461a authored by Romain Courteaud's avatar Romain Courteaud

slapos_jio: do not delete all categories on Credential Request and set destination_project

parent 393cd249
......@@ -34,9 +34,10 @@ credential_request = module.newContent(
site=site,
activity_list=activity_list,
corporate_name=corporate_name,
date_of_birth=date_of_birth)
date_of_birth=date_of_birth,
destination_project=context.getLayoutProperty("configuration_default_project_relative_url"))
credential_request.setCategoryList(category_list)
credential_request.setCategoryList(category_list + credential_request.getCategoryList())
# Same tag is used as in ERP5 Login._setReference, in order to protect against
# concurrency between Credential Request and Person object too
credential_request.reindexObject(activate_kw=dict(tag='set_login_%s' % reference.encode('hex')))
......
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