diff --git a/htdocs/compta/dons/fiche.php b/htdocs/compta/dons/fiche.php
index cc426e89f65..996151ae219 100644
--- a/htdocs/compta/dons/fiche.php
+++ b/htdocs/compta/dons/fiche.php
@@ -47,6 +47,12 @@ $donation_date=dol_mktime(12, 0 , 0, $_POST["remonth"], $_POST["reday"], $_POST[
if ($_POST["action"] == 'update')
{
+ if (! empty($_POST['cancel']))
+ {
+ Header("Location: fiche.php?rowid=".$_POST["rowid"]);
+ exit;
+ }
+
$error=0;
if (! $_POST["amount"] > 0)
@@ -94,6 +100,12 @@ if ($_POST["action"] == 'update')
if ($_POST["action"] == 'add')
{
+ if (! empty($_POST['cancel']))
+ {
+ Header("Location: index.php");
+ exit;
+ }
+
$error=0;
if (! $_POST["amount"] > 0)
@@ -273,8 +285,8 @@ if ($_GET["action"] == 'create')
print "
".'| '.$langs->trans("Country").' | |
';
print "".'| '.$langs->trans("EMail").' | |
';
print "".'| '.$langs->trans("Amount").' | '.$langs->trans("Currency".$conf->monnaie).' |
';
- print "".' |
';
print "\n";
+ print '
';
print "\n";
}
@@ -292,11 +304,11 @@ if ($_GET["rowid"] && $_GET["action"] == 'edit')
$h=0;
$head[$h][0] = DOL_URL_ROOT."/compta/dons/fiche.php?rowid=".$_GET["rowid"];
- $head[$h][1] = $langs->trans("Donation");
+ $head[$h][1] = $langs->trans("Card");
$hselected=$h;
$h++;
- dol_fiche_head($head, $hselected, $langs->trans("Ref"));
+ dol_fiche_head($head, $hselected, $langs->trans("Donation"), 0, 'generic');
print '\n";
print "\n";
@@ -380,7 +393,7 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit')
$hselected=$h;
$h++;
- dol_fiche_head($head, $hselected, $langs->trans("Donation"));
+ dol_fiche_head($head, $hselected, $langs->trans("Donation"), 0, 'generic');
print "