Merge pull request #2795 from hregis/3.7
Fix: add $object for use with triggers
This commit is contained in:
commit
ad993f246d
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2014 Regis Houssin <regis.houssin@capnetworks.com>
|
||||
* Copyright (C) 2005-2015 Regis Houssin <regis.houssin@capnetworks.com>
|
||||
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
|
||||
* Copyright (C) 2007-2011 Jean Heimburger <jean@tiaris.info>
|
||||
* Copyright (C) 2010-2013 Juanjo Menent <jmenent@2byte.es>
|
||||
@ -3437,7 +3437,7 @@ class Product extends CommonObject
|
||||
$filename = preg_replace('/'.preg_quote($dir,'/').'/i','',$file); // Nom du fichier
|
||||
|
||||
// On efface l'image d'origine
|
||||
dol_delete_file($file);
|
||||
dol_delete_file($file, 0, 0, 0, $this); // For triggers
|
||||
|
||||
// Si elle existe, on efface la vignette
|
||||
if (preg_match('/('.$this->regeximgext.')$/i',$filename,$regs))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user