$error is a string (old way). $errors isan array of list of all errors. Goal is to abandon error (only one string) to use errors instead (so we can report several errors).
2014-06-24 10:04 GMT+02:00 [Kreiz IT]Cédric GROSS <c.gr...@kreiz-it.fr>: > Humm.. It’s quite a mess with error management. > > > > What is difference between $error and $error*s *in CommonObject ? > > > > Does $error is last error and $errors array of error ? Usage are not same > across files. > > 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 > > > > *[image: K.I.T.x100v8.png]* > > *Kreiz** I.T.* > > Cédric GROSS > > Tél : 06 19 40 67 92 > > Fax : 02 57 52 00 19 > > 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 > > -- 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