From 11d2af0f7e5a58ed86b18b9990fe0ec2b1336d77 Mon Sep 17 00:00:00 2001 From: Florian Henry Date: Fri, 1 Nov 2013 23:20:10 +0100 Subject: [PATCH] Fix hook object call --- htdocs/product/document.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 0ba03e0c7c0..22de2273820 100644 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -73,7 +73,7 @@ if ($id > 0 || ! empty($ref)) $modulepart='produit'; $parameters=array('id'=>$id); -$reshook=$hookmanager->executeHooks('doActions',$parameters,$product,$action); // Note that $action and $object may have been modified by some hooks +$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks /* @@ -114,7 +114,7 @@ if ($object->id) $picto=($object->type==1?'service':'product'); dol_fiche_head($head, 'documents', $titre, 0, $picto); - $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$product,$action); // Note that $action and $object may have been modified by hook + $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook // Construit liste des fichiers