Works on module hook integration
This commit is contained in:
parent
2b2e2225aa
commit
8a52009111
@ -1388,9 +1388,9 @@ if ($id > 0 || ! empty($ref))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Hook of thirdparty module
|
// Hook of thirdparty module
|
||||||
if (! empty($hooks->objModules))
|
if (! empty($propal->objModules))
|
||||||
{
|
{
|
||||||
foreach($hooks->objModules as $module)
|
foreach($propal->objModules as $module)
|
||||||
{
|
{
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
$module->formAddObject($propal);
|
$module->formAddObject($propal);
|
||||||
|
|||||||
@ -1658,7 +1658,7 @@ else
|
|||||||
*/
|
*/
|
||||||
if ($commande->statut == 0 && $user->rights->commande->creer)
|
if ($commande->statut == 0 && $user->rights->commande->creer)
|
||||||
{
|
{
|
||||||
if (! preg_match('/editline|edit_/',$_GET["action"]))
|
if ($_GET['action'] != 'editline')
|
||||||
{
|
{
|
||||||
$var=true;
|
$var=true;
|
||||||
|
|
||||||
@ -1672,9 +1672,9 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Hook of thirdparty module
|
// Hook of thirdparty module
|
||||||
if (! empty($hooks->objModules))
|
if (! empty($commande->objModules))
|
||||||
{
|
{
|
||||||
foreach($hooks->objModules as $module)
|
foreach($commande->objModules as $module)
|
||||||
{
|
{
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
$module->formAddObject($commande);
|
$module->formAddObject($commande);
|
||||||
|
|||||||
@ -1356,7 +1356,7 @@ class CommonObject
|
|||||||
|
|
||||||
if ($line->product_type == 9 && ! empty($line->special_code))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user