|
From: | Destailleur Laurent |
Subject: | Re: [Dolibarr-dev] Facture class |
Date: | Tue, 25 Jun 2013 09:38:12 +0200 |
I think the better things to do is to pass the user as parameters (and check each call to be sure the parameters is correctly passed)
It's done like that in all class CRUD method. Global $user should be avoid into class method.
Florian HENRY address@hidden +33 6 03 76 48 07 http://www.open-concept.pro Twitter : @_Open_Concept_ Secretaire de l'association DolibarrLe 10/06/2013 09:55, Maxime Kohlhaas a écrit :
Hi all,
Just wondering why the FactureLigne update method has $user as first parameter... Propal and Commande don't have it, and the $user var is defined by global just after.
Should I remove this parameter and check where this function is called ?
Regards,--
Maxime Kohlhaas
Consultant associé
ATM Consulting
+33 6 33 42 92 43
_______________________________________________ Dolibarr-dev mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
[Prev in Thread] | Current Thread | [Next in Thread] |