diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index d044cf31777..334a90d07c2 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -98,6 +98,8 @@ if ($_REQUEST['action'] == 'confirm_validate' && $_REQUEST['confirm'] == 'yes') $outputlangs->setDefaultLang($_REQUEST['lang_id']); } $result=fichinter_create($db, $fichinter, $_REQUEST['model'], $outputlangs); + Header ('Location: '.$_SERVER["PHP_SELF"].'?id='.$fichinter->id); + exit; } else { @@ -121,6 +123,8 @@ if ($_REQUEST['action'] == 'confirm_modify' && $_REQUEST['confirm'] == 'yes') $outputlangs->setDefaultLang($_REQUEST['lang_id']); } $result=fichinter_create($db, $fichinter, (empty($_REQUEST['model'])?$fichinter->model:$_REQUEST['model']), $outputlangs); + Header ('Location: '.$_SERVER["PHP_SELF"].'?id='.$fichinter->id); + exit; } else { @@ -488,7 +492,7 @@ if ($_GET["action"] == 'create') print '