diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php
index cf0d82b2c7b..5b53437a212 100644
--- a/htdocs/adherents/card.php
+++ b/htdocs/adherents/card.php
@@ -1788,13 +1788,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print '
';
- print '';
+ print '| ';
print $langs->trans('Progression').' | ';
print ' | ';
if ($action != 'progression' && $object->fk_statut < $object::STATUS_CLOSED && !$user->socid) {
print ''.img_edit($langs->trans('Modify')).' | ';
}
print ' ';
- print ' | ';
+ print ' | ';
if ($user->rights->ticket->write && $action == 'progression') {
print '';
} else {
print($object->progress > 0 ? $object->progress : '0').'%';
@@ -1095,32 +1095,53 @@ if ($action == 'create' || $action == 'presend') {
print ' | ';
// Timing (Duration sum of linked fichinter)
- if ($conf->ficheinter->enabled) {
+ if (!empty($conf->ficheinter->enabled)) {
$object->fetchObjectLinked();
$num = count($object->linkedObjects);
$timing = 0;
+ $foundinter = 0;
if ($num) {
foreach ($object->linkedObjects as $objecttype => $objects) {
if ($objecttype = "fichinter") {
foreach ($objects as $fichinter) {
+ $foundinter++;
$timing += $fichinter->duration;
}
}
}
}
- print '| ';
-
+ print ' | | ';
print $form->textwithpicto($langs->trans("TicketDurationAuto"), $langs->trans("TicketDurationAutoInfos"), 1);
print ' | ';
- print convertSecondToTime($timing, 'all', $conf->global->MAIN_DURATION_OF_WORKDAY);
+ print $foundinter ? convertSecondToTime($timing, 'all', $conf->global->MAIN_DURATION_OF_WORKDAY) : '';
print ' | ';
}
+ // Other attributes
+ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_view.tpl.php';
+
+ print ' ';
+
+
+ // Fin colonne gauche et début colonne droite
+ print ' |