Ajout confirmation d'effacement d'image
This commit is contained in:
parent
0466cfb27f
commit
0912fd388c
@ -65,7 +65,7 @@ if ($_FILES['userfile']['size'] > 0 && $_POST["sendit"] && $conf->upload != 0)
|
||||
|
||||
if ($_REQUEST["action"] == 'confirm_delete' && $_GET["file"] && $_REQUEST['confirm'] == 'yes')
|
||||
{
|
||||
if ($user->rights->produit->creer)
|
||||
if($user->rights->produit->creer)
|
||||
{
|
||||
$product = new Product($db);
|
||||
$product->delete_photo($conf->produit->dir_output."/".$_GET["file"]);
|
||||
@ -104,7 +104,7 @@ if ($_GET["id"] || $_GET["ref"])
|
||||
dolibarr_fiche_head($head, 'photos', $titre);
|
||||
|
||||
/*
|
||||
* Confirmation de la suppression de photo
|
||||
* Confirmation de la suppression de la propale
|
||||
*/
|
||||
if ($_GET['action'] == 'delete')
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user