dfelete cem data on product deletion
This commit is contained in:
parent
10674a59bb
commit
797b9c9054
@ -1408,6 +1408,14 @@ class Product extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Delete record into ECM index and physically
|
||||||
|
if (!$error) {
|
||||||
|
$res = $this->deleteEcmFiles(0); // Deleting files physically is done later with the dol_delete_dir_recursive
|
||||||
|
if (!$res) {
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
// We remove directory
|
// We remove directory
|
||||||
$ref = dol_sanitizeFileName($this->ref);
|
$ref = dol_sanitizeFileName($this->ref);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user