Fix: file not physically removed
This commit is contained in:
parent
d841abd55a
commit
d6680b982a
@ -93,9 +93,7 @@ if (GETPOST('addfile') && !GETPOST('add_ticket')) {
|
|||||||
|
|
||||||
// Remove file
|
// Remove file
|
||||||
if (GETPOST('removedfile') && !GETPOST('add_ticket')) {
|
if (GETPOST('removedfile') && !GETPOST('add_ticket')) {
|
||||||
////$res = $object->fetch('',GETPOST('track_id'));
|
|
||||||
////if($res > 0)
|
|
||||||
////{
|
|
||||||
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
|
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
|
||||||
|
|
||||||
// Set tmp directory
|
// Set tmp directory
|
||||||
@ -103,9 +101,8 @@ if (GETPOST('removedfile') && !GETPOST('add_ticket')) {
|
|||||||
$upload_dir_tmp = $vardir . '/temp';
|
$upload_dir_tmp = $vardir . '/temp';
|
||||||
|
|
||||||
// TODO Delete only files that was uploaded from email form
|
// TODO Delete only files that was uploaded from email form
|
||||||
dol_remove_file_process($_POST['removedfile'], 0);
|
dol_remove_file_process($_POST['removedfile'], 0, 0);
|
||||||
$action = 'create_ticket';
|
$action = 'create_ticket';
|
||||||
////}
|
|
||||||
}
|
}
|
||||||
if ($action == 'create_ticket' && GETPOST('add_ticket')) {
|
if ($action == 'create_ticket' && GETPOST('add_ticket')) {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user