diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index 37b0831be72..08dd7e467a4 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -115,7 +115,7 @@ if ($_POST["action"] == 'add_action') if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes') { $actioncomm = new ActionComm($db); - $actioncomm->delete($id); + $actioncomm->delete($_GET["id"]); Header("Location: index.php"); } @@ -312,21 +312,7 @@ if ($_GET["id"]) // Confirmation suppression action if ($_GET["action"] == 'delete') { - print '
\n"; + $html->form_confirm("fiche.php?id=".$_GET["id"],"Supprimer l'action","Etes-vous sûr de vouloir supprimer cette action ?","confirm_delete"); } $act = new ActionComm($db); @@ -375,7 +361,7 @@ if ($_GET["id"]) // Affichage fiche action en mode visu print_titre ("Action commerciale"); - print '| Type | '.$act->type.' | |||
| Société | '; print ''.$act->societe->nom.' | '; @@ -383,7 +369,7 @@ if ($_GET["id"]) print 'Contact | '.$act->contact->fullname.' | |
| '.$langs->trans("Author").' | '.strftime('%d %B %Y %H:%M',$act->date).' | '; print ''.$langs->trans("Author").' | '.$act->author->fullname.' | |
| Pourcentage réalisé | '.$act->percent.' % | |||
| Pourcentage réalisé | '.$act->percent.' % | |||
| Objet lié | ';||||