From 2585cb993379fbf5c64b15902c56b68d2de2ac86 Mon Sep 17 00:00:00 2001 From: dheeyi Date: Fri, 21 Aug 2015 12:48:54 -0400 Subject: [PATCH] PM-3185 Public Files: No elimina por completo el archivo publico al momento de realizar click en DELETE --- .../src/ProcessMaker/BusinessModel/FilesManager.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/FilesManager.php b/workflow/engine/src/ProcessMaker/BusinessModel/FilesManager.php index 3ea4b80e3..cbd6e5df3 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/FilesManager.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/FilesManager.php @@ -468,7 +468,13 @@ class FilesManager if (file_exists($path) && !is_dir($path)) { unlink($path); - } + } else { + $path = PATH_DATA_PUBLIC.$sProcessUID.DIRECTORY_SEPARATOR.$sFile; + + if (file_exists($path) && !is_dir($path)) { + unlink($path); + } + } $rs = \ProcessFilesPeer::doDelete($criteria); } catch (Exception $e) {