Skip to content

Commit

Permalink
Evarisk#1002 [PreventionPlan] fix: check signatories < max managers
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-francois committed Jul 5, 2024
1 parent 4ed96f2 commit 2ca6fb5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/tpl/attendants/attendants_table_view.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,11 @@
$alreadyAddedSignatories[$element->element_type][$element->element_id] = $element->element_id;
}

if ($object->limit_managers == 0) {
if (count($signatories) < $object->max_managers) {
require __DIR__ . '/attendants_table_add_view.tpl.php';
}
} else {
print '<div class="opacitymedium">' . $langs->trans('NoAttendants') . '</div><br>';

if ($object->limit_managers == 0) {
require __DIR__ . '/attendants_table_add_view.tpl.php';
}
require __DIR__ . '/attendants_table_add_view.tpl.php';
}

0 comments on commit 2ca6fb5

Please sign in to comment.