From 4f93bc7d09c8a6c38e967eadb891ab64446b606a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 17 Aug 2024 22:47:59 +0200 Subject: [PATCH] Try to fix fatal PHP error --- htdocs/core/class/commonnumrefgenerator.class.php | 1 + htdocs/core/modules/societe/modules_societe.class.php | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/commonnumrefgenerator.class.php b/htdocs/core/class/commonnumrefgenerator.class.php index 20b956034b0..f843c599dd7 100644 --- a/htdocs/core/class/commonnumrefgenerator.class.php +++ b/htdocs/core/class/commonnumrefgenerator.class.php @@ -85,6 +85,7 @@ abstract class CommonNumRefGenerator */ public $prefixIsRequired; + /** Return model name * * @param Translate $langs Object langs diff --git a/htdocs/core/modules/societe/modules_societe.class.php b/htdocs/core/modules/societe/modules_societe.class.php index f32e6257bb7..c4e65c4fded 100644 --- a/htdocs/core/modules/societe/modules_societe.class.php +++ b/htdocs/core/modules/societe/modules_societe.class.php @@ -93,7 +93,7 @@ abstract class ModeleThirdPartyCode extends CommonNumRefGenerator * @param int<-1,2> $type Type of third party (1:customer, 2:supplier, -1:autodetect) * @return string Return string example */ - abstract public function getExample($langs = null, $objsoc = '', $type = -1); + //abstract public function getExample($langs = null, $objsoc = '', $type = -1); /** @@ -150,8 +150,6 @@ abstract class ModeleThirdPartyCode extends CommonNumRefGenerator */ public function getToolTip($langs, $soc, $type) { - global $conf; - $langs->loadLangs(array("admin", "companies")); $strikestart = '';