fix: 21139

This commit is contained in:
Florian HENRY 2022-06-07 14:40:21 +02:00
parent 85f95e86b7
commit 0bff392de8

View File

@ -387,7 +387,6 @@ if (empty($reshook)) {
// Si déjà un user assigné on le supprime des contacts
if ($useroriginassign > 0) {
$internal_contacts = $object->listeContact(-1, 'internal', 0, 'SUPPORTTEC');
foreach ($internal_contacts as $key => $contact) {
if ($contact['id'] !== $usertoassign) {
$result = $object->delete_contact($contact['rowid']);