Fix missing trigger CONTRACT_MODIFY

This commit is contained in:
Laurent Destailleur 2018-02-04 12:59:16 +01:00
parent 956df63c87
commit 3cfb6aaa67
2 changed files with 5 additions and 7 deletions

View File

@ -1268,13 +1268,10 @@ class Contrat extends CommonObject
{ {
if (! $notrigger) if (! $notrigger)
{ {
// Uncomment this and change MYOBJECT to your own tag if you // Call triggers
// want this action calls a trigger. $result=$this->call_trigger('CONTRACT_MODIFY',$user);
if ($result < 0) { $error++; }
//// Call triggers // End call triggers
//$result=$this->call_trigger('MYOBJECT_MODIFY',$user);
//if ($result < 0) { $error++; //Do also what you must do to rollback action if trigger fail}
//// End call triggers
} }
} }

View File

@ -211,6 +211,7 @@ class InterfaceMyModuleTriggers extends DolibarrTriggers
// Contracts // Contracts
case 'CONTRACT_CREATE': case 'CONTRACT_CREATE':
case 'CONTRACT_ACTIVATE': case 'CONTRACT_ACTIVATE':
case 'CONTRACT_MODIFY':
case 'CONTRACT_CANCEL': case 'CONTRACT_CANCEL':
case 'CONTRACT_CLOSE': case 'CONTRACT_CLOSE':
case 'CONTRACT_DELETE': case 'CONTRACT_DELETE':