diff --git a/core/tpl/attendants/attendants_table_view.tpl.php b/core/tpl/attendants/attendants_table_view.tpl.php index a6a22c87..275cf270 100644 --- a/core/tpl/attendants/attendants_table_view.tpl.php +++ b/core/tpl/attendants/attendants_table_view.tpl.php @@ -185,12 +185,16 @@ } print ''; print ''; - $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 '
' . $langs->trans('NoAttendants') . '

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