diff --git a/ChangeLog b/ChangeLog index d58f3278d2c..0432585483a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -30,6 +30,8 @@ Fix: [ bug #1250 ] "Supplier Ref. product" sidebar search box does not work Fix: Bad space in predefined messages. Fix: Signature was not added for email sent from thirdparty page. Fix: Action event SHIPPING_VALIDATE is not implemented +Fix: The customer code was set to uppercase when using numbering module leopard. We + must keep data safe of any change. ***** ChangeLog for 3.5 compared to 3.4.* ***** For users: diff --git a/htdocs/core/modules/societe/mod_codeclient_leopard.php b/htdocs/core/modules/societe/mod_codeclient_leopard.php index 584a4941777..affee5274ca 100644 --- a/htdocs/core/modules/societe/mod_codeclient_leopard.php +++ b/htdocs/core/modules/societe/mod_codeclient_leopard.php @@ -1,6 +1,6 @@ - * Copyright (C) 2006-2009 Laurent Destailleur + * Copyright (C) 2006-2014 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,8 +27,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/modules/societe/modules_societe.class.php' /** - * \class mod_codeclient_leopard - * \brief Classe permettant la gestion leopard des codes tiers + * Class to manage numbering of thirdparties code */ class mod_codeclient_leopard extends ModeleThirdPartyCode { @@ -104,7 +103,7 @@ class mod_codeclient_leopard extends ModeleThirdPartyCode global $conf; $result=0; - $code = strtoupper(trim($code)); + $code = trim($code); if (empty($code) && $this->code_null && empty($conf->global->MAIN_COMPANY_CODE_ALWAYS_REQUIRED)) { @@ -115,9 +114,9 @@ class mod_codeclient_leopard extends ModeleThirdPartyCode $result=-2; } - dol_syslog("mod_codeclient_leopard::verif type=".$type." result=".$result); + dol_syslog(get_class($this)."::verif type=".$type." result=".$result); return $result; } } -?> +?> \ No newline at end of file