Commit 578b0c52 by Yvon Kerdoncuff

#7322 : set suppleant_member_id in create_pair

parent 3817e753
Pipeline #4045 failed with stage
in 0 seconds
......@@ -780,6 +780,7 @@ def create_pair(request):
"nb_associated_people",
"current_template_name",
"parent_id",
"suppleant_member_id",
"is_associated_people",
"makeups_to_do",
"final_standard_points",
......@@ -829,6 +830,8 @@ def create_pair(request):
child[field] = False
child['is_associated_people'] = True
child['parent_id'] = parent['id']
#Link the newly created attached suppleant contact and the suppleant member
child['suppleant_member_id'] = child_id
# Following lines are useful if parent or child is unsubscribed
if not 'shift_type' in parent:
parent['shift_type'] = 'standard'
......
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