Skip to content

Commit

Permalink
Evarisk#1002 [PreventionPlan] add: check limit managers to display in…
Browse files Browse the repository at this point in the history
…put fields
  • Loading branch information
evarisk-francois committed Jul 1, 2024
1 parent e102806 commit 36deb0d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/tpl/attendants/attendants_table_view.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,16 @@
}
print '</td>';
print '</tr>';
$alreadyAddedSignatories[$element->element_type][$element->element_id] = $element->element_id;
$alreadyAddedSignatories[$element->element_type][$element->element_id] = $elementmod->element_id;
}

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

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

0 comments on commit 36deb0d

Please sign in to comment.