Fix compatibility

This commit is contained in:
Laurent Destailleur 2024-03-07 18:53:21 +01:00
parent 5f7192f475
commit f396bf1218

View file

@ -4162,9 +4162,11 @@ class CommandeFournisseurLigne extends CommonOrderLine
* @param int $notrigger 1=Disable call to triggers
* @return int Return integer <0 if KO, >0 if OK
*/
public function delete($notrigger = 0)
public function delete($user, $notrigger = 0)
{
global $user;
if (empty($user)) {
global $user;
}
$error = 0;