--- /tmp/dsg/dolibarr/htdocs/core/modules/usergroup/github_19.0.3_modules_usergroup.class.php
+++ /tmp/dsg/dolibarr/htdocs/core/modules/usergroup/client_modules_usergroup.class.php
@@ -21,0 +22,6 @@
+

+/**

+ *	    \class      ModeleProductCode

+ *		\brief  	Parent class for product code generators

+ */

+

@@ -28,2 +34 @@
-require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';

-

+ require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';

@@ -36,13 +41,4 @@
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps

-	/**

-	 *	Return list of active generation modules

-	 *

-	 *  @param	DoliDB	$db     			Database handler

-	 *  @param  integer	$maxfilenamelength  Max length of value to show

-	 *  @return	array						List of templates

-	 */

-	public static function liste_modeles($db, $maxfilenamelength = 0)

-	{

-		// phpcs:enable

-		$type = 'group';

-		$list = array();

+    /**

+     * @var string Error code (or message)

+     */

+    public $error = '';

@@ -50,4 +46,21 @@
-		include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';

-		$list = getListOfModels($db, $type, $maxfilenamelength);

-		return $list;

-	}

+

+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps

+    /**

+     *	Return list of active generation modules

+     *

+     *  @param	DoliDB	$db     			Database handler

+     *  @param  integer	$maxfilenamelength  Max length of value to show

+     *  @return	array						List of templates

+     */

+    public static function liste_modeles($db, $maxfilenamelength = 0)

+    {

+        // phpcs:enable

+        global $conf;

+

+        $type = 'group';

+        $list = array();

+

+        include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';

+        $list = getListOfModels($db, $type, $maxfilenamelength);

+        return $list;

+    }