Merged in bugfix/PMCORE-4066 (pull request #8669)

PMCORE-4066

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2023-01-04 13:58:12 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -6286,9 +6286,17 @@ class Processes
return $result;
}
public function getProcessFiles($proUid, $type)
/**
* Get process files
*
* @param string $proUid
* @param string $type
*
* @return array
*/
public static function getProcessFiles($proUid, $type)
{
$filesList = array();
$filesList = [];
switch ($type) {
case "mail":
@@ -6327,7 +6335,7 @@ class Processes
$fileName = basename($file);
if ($fileName != "alert_message.html" && $fileName != G::LoadTranslation('ID_UNASSIGNED_MESSAGE')) {
$filesList[] = array("filepath" => $file, "filename" => $fileName);
$filesList[] = ["filepath" => $file, "filename" => $fileName];
}
}
return $filesList;