diff --git a/htdocs/modulebuilder/template/class/myobject.class.php b/htdocs/modulebuilder/template/class/myobject.class.php index a93d2fa6565..49aa42ad96d 100644 --- a/htdocs/modulebuilder/template/class/myobject.class.php +++ b/htdocs/modulebuilder/template/class/myobject.class.php @@ -443,8 +443,12 @@ class MyObject extends CommonObject { global $conf, $langs; + $this->output = ''; + $this->error=''; + dol_syslog(__METHOD__, LOG_DEBUG); + // ... return 0; }