diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index e6523d3d4ed..faa4109f736 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -681,7 +681,7 @@ if ($action == 'create')
$listofuserid=dol_json_decode($_SESSION['assignedtouser'], true);
}
}
- print $form->select_dolusers_forevent(($action=='create'?'add':'update'),'assignedtouser',1);
+ print $form->select_dolusers_forevent(($action=='create'?'add':'update'), 'assignedtouser', 1, '', 0, '', '', 0, 0, 0, 'AND u.statut != 0');
if (in_array($user->id,array_keys($listofuserid))) print $langs->trans("MyAvailability").': '.$langs->trans("Busy");
print '';
@@ -928,7 +928,7 @@ if ($id > 0)
$listofuserid=dol_json_decode($_SESSION['assignedtouser'], true);
}
}
- print $form->select_dolusers_forevent(($action=='create'?'add':'update'),'assignedtouser',1);
+ print $form->select_dolusers_forevent(($action=='create'?'add':'update'), 'assignedtouser', 1, '', 0, '', '', 0, 0, 0, 'AND u.statut != 0');
if (in_array($user->id,array_keys($listofuserid))) print $langs->trans("MyAvailability").': id]['transparency']?' checked="checked"':'').'">'.$langs->trans("Busy");
print '';