mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Update societe.class.php
This commit is contained in:
parent
95141550fa
commit
43f150dc42
|
|
@ -673,6 +673,7 @@ class Societe extends CommonObject
|
|||
if (empty($this->status)) $this->status = 0;
|
||||
$this->name = $this->name ?trim($this->name) : trim($this->nom);
|
||||
if (!empty($conf->global->MAIN_FIRST_TO_UPPER)) $this->name = ucwords($this->name);
|
||||
if (!empty($conf->global->MAIN_ALL_TO_UPPER)) $this->name=strtoupper($this->name);
|
||||
$this->nom = $this->name; // For backward compatibility
|
||||
if (empty($this->client)) $this->client = 0;
|
||||
if (empty($this->fournisseur)) $this->fournisseur = 0;
|
||||
|
|
@ -987,7 +988,9 @@ class Societe extends CommonObject
|
|||
dol_syslog(get_class($this)."::Update id=".$id." call_trigger=".$call_trigger." allowmodcodeclient=".$allowmodcodeclient." allowmodcodefournisseur=".$allowmodcodefournisseur);
|
||||
|
||||
$now = dol_now();
|
||||
|
||||
|
||||
if (!empty($conf->global->MAIN_FIRST_TO_UPPER)) $this->name = ucwords($this->name);
|
||||
if (! empty($conf->global->MAIN_ALL_TO_UPPER)) $this->name=strtoupper($this->name);
|
||||
// Clean parameters
|
||||
$this->id = $id;
|
||||
$this->entity = ((isset($this->entity) && is_numeric($this->entity)) ? $this->entity : $conf->entity);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user