diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 510248b7c2c..1ff1ed6b2d6 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -1458,9 +1458,9 @@ abstract class CommonObject if ($trigkey) { // call trigger with updated object values - if (empty($this->get_field_list()) && method_exists($this, 'fetch')) + if (empty($this->fields) && method_exists($this, 'fetch')) { - $result = $this->fetch($id); + $result = $this->fetch($id); } else {