Ignore optionals when finding task step (#3836)

This fixes optional elements from being required to unlock the next step
when using the step system.
This commit is contained in:
hg
2024-01-05 17:05:56 -05:00
committed by GitHub
parent 1e8889a9fc
commit 076aab50e8
2 changed files with 15 additions and 9 deletions
+3 -1
View File
@@ -359,9 +359,11 @@ namespace Tasks {
if (activity_states[i].activity_state != ActivityCompleted)
{
completed_ids[i] = false;
current_step = std::min(current_step, el.step);
// step system advances to next step if only optionals active
if (!el.optional)
{
current_step = std::min(current_step, el.step);
result.is_task_complete = false;
}
}