Works on module hook integration

This commit is contained in:
Regis Houssin 2010-09-07 16:01:11 +00:00
parent 2b2e2225aa
commit 8a52009111
3 changed files with 6 additions and 6 deletions

View File

@ -1388,9 +1388,9 @@ if ($id > 0 || ! empty($ref))
}
// Hook of thirdparty module
if (! empty($hooks->objModules))
if (! empty($propal->objModules))
{
foreach($hooks->objModules as $module)
foreach($propal->objModules as $module)
{
$var=!$var;
$module->formAddObject($propal);

View File

@ -1658,7 +1658,7 @@ else
*/
if ($commande->statut == 0 && $user->rights->commande->creer)
{
if (! preg_match('/editline|edit_/',$_GET["action"]))
if ($_GET['action'] != 'editline')
{
$var=true;
@ -1672,9 +1672,9 @@ else
}
// Hook of thirdparty module
if (! empty($hooks->objModules))
if (! empty($commande->objModules))
{
foreach($hooks->objModules as $module)
foreach($commande->objModules as $module)
{
$var=!$var;
$module->formAddObject($commande);

View File

@ -1356,7 +1356,7 @@ class CommonObject
if ($line->product_type == 9 && ! empty($line->special_code))
{
$this->objModules[$line->special_code]->printObjectLine($this,$num,$i);
$this->objModules[$line->special_code]->printObjectLine($this,$line,$num,$i);
}
else
{