This commit is contained in:
Laurent Destailleur 2021-06-23 10:52:05 +02:00
parent 82ee5c2825
commit eb9be15c4c

View File

@ -644,9 +644,9 @@ class Inventory extends CommonObject
if ($this->db->num_rows($result)) {
$obj = $this->db->fetch_object($result);
$this->id = $obj->rowid;
if ($obj->fk_user_author) {
if ($obj->fk_user_creat) {
$cuser = new User($this->db);
$cuser->fetch($obj->fk_user_author);
$cuser->fetch($obj->fk_user_creat);
$this->user_creation = $cuser;
}