diff --git a/htdocs/societe/notify/card.php b/htdocs/societe/notify/card.php index dece4029629..d01a7e7517f 100644 --- a/htdocs/societe/notify/card.php +++ b/htdocs/societe/notify/card.php @@ -84,6 +84,10 @@ if ($reshook < 0) { if (empty($reshook)) { $error = 0; + if (GETPOST('cancel', 'alpha')) { + $action = ''; + } + // Add a notification if ($action == 'add') { if (empty($contactid)) { @@ -269,6 +273,8 @@ if ($result > 0) { print_liste_field_titre("Action", $_SERVER["PHP_SELF"], "", '', $param, 'width="35%"', $sortfield, $sortorder); print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, 'width="10%"', $sortfield, $sortorder); print_liste_field_titre(''); + print_liste_field_titre(''); + print "\n"; // Line to add a new subscription @@ -306,6 +312,7 @@ if ($result > 0) { print $form->selectarray("typeid", $type, '', 0, 0, 0, '', 0, 0, 0, '', 'minwidth75imp'); print ''; print ''; + print ''; print ''; } else { print '';