Commit 313b1dd9 by Damien Moulard

BDM: create attached: fix display error when member is unsuscribed

parent a9a912d2
Pipeline #2138 passed with stage
in 1 minute 30 seconds
......@@ -62,11 +62,13 @@ function display_member_infos(divId, memberData) {
.text(memberData.email);
$("#" + divId).find(".member_status")
.text(possible_cooperative_state[memberData.cooperative_state]);
$("#" + divId).find(".member_shift_name")
.text(memberData.current_template_name);
$("#" + divId).find(".member_makeups_to_do")
.text(memberData.makeups_to_do);
let member_shift_name = memberData.current_template_name === false ? 'X' : memberData.current_template_name;
$("#" + divId).find(".member_shift_name")
.text(member_shift_name);
if (memberData.is_associated_people === false) {
$("#" + divId).find(".member_associated_partner_area")
.hide();
......
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