Removed deprecated method actioncomm->add(), use create() instead

This commit is contained in:
Laurent Destailleur 2019-09-04 13:54:36 +02:00
parent 5494fed0a0
commit 750182f9cd
2 changed files with 1 additions and 15 deletions

View File

@ -19,7 +19,7 @@ Following changes may create regressions for some external modules, but were nec
* Rename 'module_part' parameter into 'modulepart' into document APIs, for consistency.
* The deprecated method get_OutstandingBill has been removed. You can use getOutstandingBills() instead.
* The hook "moreFamily" must return payment into var "totalpayment" and no more "paiement" (english replace french).
* Removed deprecated method actioncomm->add(), use create() instead
***** ChangeLog for 10.0.1 compared to 10.0.0 *****

View File

@ -497,20 +497,6 @@ class ActionComm extends CommonObject
}
}
/**
* Add an action/event into database.
* $this->type_id OR $this->type_code must be set.
*
* @param User $user Object user making action
* @param int $notrigger 1 = disable triggers, 0 = enable triggers
* @return int Id of created event, < 0 if KO
* @deprecated Use create instead
*/
public function add(User $user, $notrigger = 0)
{
return $this->create($user, $notrigger);
}
/**
* Load an object from its id and create a new one in database
*