diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php
index 25316a6a6fc..d48e8041c1e 100644
--- a/htdocs/commande/class/commande.class.php
+++ b/htdocs/commande/class/commande.class.php
@@ -24,7 +24,7 @@
* \file htdocs/commande/class/commande.class.php
* \ingroup commande
* \brief Fichier des classes de commandes
- * \version $Id: commande.class.php,v 1.123 2011/08/10 22:47:33 eldy Exp $
+ * \version $Id: commande.class.php,v 1.124 2011/08/11 07:41:41 hregis Exp $
*/
require_once(DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php");
require_once(DOL_DOCUMENT_ROOT."/product/class/product.class.php");
@@ -899,7 +899,7 @@ class Commande extends CommonObject
$this->cond_reglement_id = $object->cond_reglement_id;
$this->mode_reglement_id = $object->mode_reglement_id;
$this->availability_id = $object->availability_id;
- $this->demand_reason_id = $object->demand_reason_id;
+ $this->demand_reason_id = $object->demand_reason_id;
$this->date_livraison = $object->date_livraison;
$this->fk_delivery_address = $object->fk_delivery_address;
$this->contact_id = $object->contactid;
@@ -917,6 +917,7 @@ class Commande extends CommonObject
// Hook of thirdparty module
if (is_object($hookmanager))
{
+ $parameters=array('objFrom'=>$object);
$reshook=$hookmanager->executeHooks('createfrom',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) $error++;
}
diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php
index 8c7f4f050ce..056c0902784 100644
--- a/htdocs/core/class/html.formfile.class.php
+++ b/htdocs/core/class/html.formfile.class.php
@@ -21,7 +21,7 @@
* \file htdocs/core/class/html.formfile.class.php
* \ingroup core
* \brief File of class to offer components to list and upload files
- * \version $Id: html.formfile.class.php,v 1.54 2011/08/10 22:47:34 eldy Exp $
+ * \version $Id: html.formfile.class.php,v 1.55 2011/08/11 07:41:41 hregis Exp $
*/
@@ -451,7 +451,7 @@ class FormFile
$out.= '';
// Execute hooks
- $parameters=array('socid'=>$GLOBALS['socid'],'id'=>$GLOBAL['id']);
+ $parameters=array('socid'=>$GLOBALS['socid'],'id'=>$GLOBALS['id']);
if (is_object($hookmanager)) $out.= $hookmanager->executeHooks('formBuilddocOptions',$parameters);
}
diff --git a/htdocs/core/tpl/predefinedproductline_create.tpl.php b/htdocs/core/tpl/predefinedproductline_create.tpl.php
index ff8a26ec7d4..9bb5d3d1b25 100644
--- a/htdocs/core/tpl/predefinedproductline_create.tpl.php
+++ b/htdocs/core/tpl/predefinedproductline_create.tpl.php
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see