Ok thanks Laurent.
I will do that. Cedric De : dolibarr-dev-bounces+c.gross=kreiz-it...@nongnu.org [mailto:dolibarr-dev-bounces+c.gross=kreiz-it...@nongnu.org] De la part de Destailleur Laurent Envoyé : lundi 23 juin 2014 23:37 À : Posts about Dolibarr ERP & CRM development and coding Objet : Re: [Dolibarr-dev] Triggers Dolibarr should cancel action if return code of triggers are < 0. If at least one trigger return < 0, then actions are canceled. So we must test if return of $interface->run_trigger is < 0 to know if we rollback or not. This logic may not be implemented everywhere but this is how it should. 2014-06-23 17:22 GMT+02:00 [Kreiz IT]Cédric GROSS <c.gr...@kreiz-it.fr>: Hello there, I have a look on ton of bugtrack opened by Marcos about trigger. I started by supplier and mainly trigger doesn’t cancel action attached to it. So my question is: is it by design or Dolibarr should cancel action if trigger failed ? I had a quick look on wiki but I didn’t find anything about what could be the “official” way of managing trigger failure. Logically, if trigger fail action should be canceled but I prefer asking you before doing all correction. Thanks for your advice. Cedric K.I.T.x100v8.png Kreiz I.T. Cédric GROSS Tél : 06 19 40 67 92 <tel:06%2019%2040%2067%2092> Fax : 02 57 52 00 19 <tel:02%2057%2052%2000%2019> http://www.kreiz-it.fr <http://www.kreiz-it.fr/> _______________________________________________ Dolibarr-dev mailing list Dolibarr-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/dolibarr-dev -- Laurent Destailleur (alias Eldy) ------------------------------------------------------------------------------------ Social networks of my OpenSource projects: Dolibarr Google+: https://plus.google.com/+DolibarrOrg/ Dolibarr Facebook: https://www.facebook.com/dolibarr Dolibarr Twitter: http://www.twitter.com/dolibarr AWStats Google+: https://plus.google.com/+AWStatsOrgPoject/ AWStats Facebook: https://www.facebook.com/awstats.org AWStats Twitter: http://www.twitter.com/awstats_project
_______________________________________________ Dolibarr-dev mailing list Dolibarr-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/dolibarr-dev