mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Can not delete directory in ecm module
This commit is contained in:
parent
d26083e8fe
commit
db9e81f571
|
|
@ -143,9 +143,15 @@ if ($_POST['action'] == 'confirm_deletedir' && $_POST['confirm'] == 'yes')
|
|||
{
|
||||
// Fetch was already done
|
||||
$result=$ecmdir->delete($user);
|
||||
header("Location: ".DOL_URL_ROOT."/ecm/index.php");
|
||||
exit;
|
||||
// $mesg = '<div class="ok">'.$langs->trans("ECMSectionWasRemoved", $ecmdir->label).'</div>';
|
||||
if ($result > 0)
|
||||
{
|
||||
header("Location: ".DOL_URL_ROOT."/ecm/index.php");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$mesg = '<div class="error">'.$langs->trans($ecmdir->error).'</div>';
|
||||
}
|
||||
}
|
||||
|
||||
// Update description
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user