Commit 8f2be677 by Etienne Freiss

Merge branch '2337-binome-access' into 'dev_cooperatic'

bug to should_select_makeup fixed

See merge request !129
parents 38b04c71 629b07c7
Pipeline #1855 passed with stage
in 1 minute 28 seconds
...@@ -20,7 +20,7 @@ function can_exchange_shifts() { ...@@ -20,7 +20,7 @@ function can_exchange_shifts() {
* @returns boolean * @returns boolean
*/ */
function should_select_makeup() { function should_select_makeup() {
return partner_data.makeups_to_do == 0 && (partner_data.is_associated_people === "False" || (partner_data.is_associated_people === "True" && block_actions_for_attached_people === "False")); return partner_data.makeups_to_do > 0 || (partner_data.makeups_to_do > 0 && partner_data.is_associated_people === "True" && block_actions_for_attached_people === "False");
} }
/** /**
......
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