mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 09:01:40 +01:00
Update societe.class.php
This commit is contained in:
@@ -790,7 +790,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);
|
||||
if (!empty($conf->global->MAIN_ALL_TO_UPPER)) $this->name = dol_strtoupper($this->name);
|
||||
$this->nom = $this->name; // For backward compatibility
|
||||
if (empty($this->client)) $this->client = 0;
|
||||
if (empty($this->fournisseur)) $this->fournisseur = 0;
|
||||
@@ -1095,7 +1095,7 @@ class Societe extends CommonObject
|
||||
$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);
|
||||
if (!empty($conf->global->MAIN_ALL_TO_UPPER)) $this->name = dol_strtoupper($this->name);
|
||||
// Clean parameters
|
||||
$this->id = $id;
|
||||
$this->entity = ((isset($this->entity) && is_numeric($this->entity)) ? $this->entity : $conf->entity);
|
||||
|
||||
Reference in New Issue
Block a user