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
[email protected]
+33 6 03 76 48 07
http://www.open-concept.pro
Twitter : @_Open_Concept_
Secretaire de l'association Dolibarr
Le 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
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev