diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php index 38c8dda9922..7e075242b59 100644 --- a/htdocs/core/class/commondocgenerator.class.php +++ b/htdocs/core/class/commondocgenerator.class.php @@ -1758,6 +1758,7 @@ abstract class CommonDocGenerator // Load extrafields if not already done if (is_null($this->extrafieldsCache)) { + include_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'; $this->extrafieldsCache = new ExtraFields($this->db); } if (empty($this->extrafieldsCache->attributes[$object->table_element])) {