Skip to content
Permalink
Browse files

Merge pull request #8678 from defrance/patch-111

add $user on delete line
  • Loading branch information...
eldy committed Apr 27, 2018
2 parents c40b50c + c879232 commit 0a4bd14bc3839df901ed36d0d72553af2984a433
Showing with 3 additions and 1 deletion.
  1. +3 −1 htdocs/fourn/class/fournisseur.facture.class.php
@@ -2762,14 +2762,16 @@ public function fetch($rowid)
*/
public function delete($notrigger = 0)
{
global $user;
dol_syslog(get_class($this)."::deleteline rowid=".$this->id, LOG_DEBUG);
$error = 0;
$this->db->begin();
if (!$notrigger) {
if ($this->call_trigger('LINEBILL_SUPPLIER_DELETE',$user) < 0) {
if ($this->call_trigger('LINEBILL_SUPPLIER_DELETE', $user) < 0) {
$error++;
}
}

0 comments on commit 0a4bd14

Please sign in to comment.
You can’t perform that action at this time.