Standardize code
This commit is contained in:
parent
5f5c7a9126
commit
4381c35835
@ -428,7 +428,7 @@ class Societe extends CommonObject
|
|||||||
* @param User $user Object of user that ask creation
|
* @param User $user Object of user that ask creation
|
||||||
* @return int >= 0 if OK, < 0 if KO
|
* @return int >= 0 if OK, < 0 if KO
|
||||||
*/
|
*/
|
||||||
function create($user)
|
function create(User $user)
|
||||||
{
|
{
|
||||||
global $langs,$conf,$mysoc;
|
global $langs,$conf,$mysoc;
|
||||||
|
|
||||||
@ -725,7 +725,7 @@ class Societe extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Update parameters of third party
|
* Update parameters of third party
|
||||||
*
|
*
|
||||||
* @param int $id id societe
|
* @param int $id Id of company (deprecated, use 0 here and call update on an object loaded by a fetch)
|
||||||
* @param User $user Utilisateur qui demande la mise a jour
|
* @param User $user Utilisateur qui demande la mise a jour
|
||||||
* @param int $call_trigger 0=non, 1=oui
|
* @param int $call_trigger 0=non, 1=oui
|
||||||
* @param int $allowmodcodeclient Inclut modif code client et code compta
|
* @param int $allowmodcodeclient Inclut modif code client et code compta
|
||||||
@ -739,6 +739,8 @@ class Societe extends CommonObject
|
|||||||
global $langs,$conf,$hookmanager;
|
global $langs,$conf,$hookmanager;
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||||
|
|
||||||
|
if (empty($id)) $id = $this->id;
|
||||||
|
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::Update id=".$id." call_trigger=".$call_trigger." allowmodcodeclient=".$allowmodcodeclient." allowmodcodefournisseur=".$allowmodcodefournisseur);
|
dol_syslog(get_class($this)."::Update id=".$id." call_trigger=".$call_trigger." allowmodcodeclient=".$allowmodcodeclient." allowmodcodefournisseur=".$allowmodcodefournisseur);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user