diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index c7fbc9163a3..4287c992a4c 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -26,7 +26,7 @@ * \file htdocs/commande/fiche.php * \ingroup commande * \brief Page to show customer order - * \version $Id: fiche.php,v 1.521 2011/06/30 13:27:21 hregis Exp $ + * \version $Id: fiche.php,v 1.522 2011/07/02 13:09:52 eldy Exp $ */ require("../main.inc.php"); @@ -90,7 +90,7 @@ if (! empty($object->hooks)) $reshook+=$module->doActions($object); if (! empty($module->error) || (! empty($module->errors) && sizeof($module->errors) > 0)) { - $mesg=$module->error; $mesgs[]=$module->errors; + $mesg=$module->error; $mesgs=$module->errors; if ($action=='add') $action='create'; if ($action=='update') $action='edit'; } @@ -2134,5 +2134,5 @@ else $db->close(); -llxFooter('$Date: 2011/06/30 13:27:21 $ - $Revision: 1.521 $'); +llxFooter('$Date: 2011/07/02 13:09:52 $ - $Revision: 1.522 $'); ?> diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 9171c8edc8c..c5bcd129280 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -26,7 +26,7 @@ * \file htdocs/compta/facture.php * \ingroup facture * \brief Page to create/see an invoice - * \version $Id: facture.php,v 1.842 2011/06/30 21:53:02 eldy Exp $ + * \version $Id: facture.php,v 1.843 2011/07/02 13:09:52 eldy Exp $ */ require('../main.inc.php'); @@ -101,7 +101,7 @@ if (! empty($object->hooks)) $reshook+=$module->doActions($object); if (! empty($module->error) || (! empty($module->errors) && sizeof($module->errors) > 0)) { - $mesg=$module->error; $mesgs[]=$module->errors; + $mesg=$module->error; $mesgs=$module->errors; if ($action=='add') $action='create'; if ($action=='update') $action='edit'; } @@ -3235,5 +3235,5 @@ else $db->close(); -llxFooter('$Date: 2011/06/30 21:53:02 $ - $Revision: 1.842 $'); +llxFooter('$Date: 2011/07/02 13:09:52 $ - $Revision: 1.843 $'); ?> diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index df847cc6aee..d0c849ba701 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -24,7 +24,7 @@ * \file htdocs/contact/fiche.php * \ingroup societe * \brief Card of a contact - * \version $Id: fiche.php,v 1.217 2011/07/01 23:11:12 eldy Exp $ + * \version $Id: fiche.php,v 1.218 2011/07/02 13:09:52 eldy Exp $ */ require("../main.inc.php"); @@ -95,7 +95,7 @@ if (! empty($object->hooks)) $resaction+=$module->doActions($object,$action); if ($resaction < 0 || ! empty($module->error) || (! empty($module->errors) && sizeof($module->errors) > 0)) { - $mesg=$module->error; $mesgs[]=$module->errors; + $error=$module->error; $errors=$module->errors; if ($action=='add') $action='create'; if ($action=='update') $action='edit'; } @@ -974,5 +974,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/01 23:11:12 $ - $Revision: 1.217 $'); +llxFooter('$Date: 2011/07/02 13:09:52 $ - $Revision: 1.218 $'); ?> diff --git a/htdocs/core/class/canvas.class.php b/htdocs/core/class/canvas.class.php index 88d13ec471a..971a01af9d8 100644 --- a/htdocs/core/class/canvas.class.php +++ b/htdocs/core/class/canvas.class.php @@ -21,7 +21,7 @@ * \file htdocs/core/class/canvas.class.php * \ingroup core * \brief File of class to manage canvas - * \version $Id$ + * \version $Id: canvas.class.php,v 1.43 2011/07/02 13:09:52 eldy Exp $ */ @@ -135,7 +135,8 @@ class Canvas /** * Execute actions - * @param id Id of object (may be empty for creation) + * @param id Id of object (may be empty for creation) + * @deprecated Use actions with hooks instead */ function doActions($id) { diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 52512d1d18c..30d8e28621f 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -26,7 +26,7 @@ * \file htdocs/societe/soc.php * \ingroup societe * \brief Third party card page - * \version $Id: soc.php,v 1.116 2011/07/01 23:11:30 eldy Exp $ + * \version $Id: soc.php,v 1.117 2011/07/02 13:09:53 eldy Exp $ */ require("../main.inc.php"); @@ -105,7 +105,7 @@ if (! empty($object->hooks)) $resaction+=$module->doActions($object,$action); if ($resaction < 0 || ! empty($module->error) || (! empty($module->errors) && sizeof($module->errors) > 0)) { - $mesg=$module->error; $mesgs[]=$module->errors; + $error=$module->error; $errors=$module->errors; if ($action=='add') $action='create'; if ($action=='update') $action='edit'; } @@ -1971,5 +1971,5 @@ else $db->close(); -llxFooter('$Date: 2011/07/01 23:11:30 $ - $Revision: 1.116 $'); +llxFooter('$Date: 2011/07/02 13:09:53 $ - $Revision: 1.117 $'); ?> \ No newline at end of file