diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php index c2d13c792c2..2371f6ff59a 100644 --- a/htdocs/compta/facture/prelevement.php +++ b/htdocs/compta/facture/prelevement.php @@ -314,7 +314,9 @@ if ($object->id > 0) { } $author = new User($db); - if (!empty($object->fk_user_author)) { + if (!empty($object->user_creation_id)) { + $author->fetch($object->user_creation_id); + } elseif (!empty($object->fk_user_author)) { $author->fetch($object->fk_user_author); }