diff --git a/htdocs/admin/fichinter.php b/htdocs/admin/fichinter.php index 28cddb6aae6..2d2f7f46d77 100644 --- a/htdocs/admin/fichinter.php +++ b/htdocs/admin/fichinter.php @@ -4,7 +4,7 @@ * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2005-2007 Regis Houssin - * Copyright (C) 2008 Raphael Bertrand (Resultic) + * Copyright (C) 2008 Raphael Bertrand (Resultic) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -213,6 +213,7 @@ if ($handle) print ''; $ficheinter=new Fichinter($db); + $ficheinter->initAsSpecimen(); // Info $htmltooltip=''; diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 8a89e1a854d..176f79b30d1 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -217,7 +217,7 @@ if ($_POST['action'] == "addligne" && $user->rights->ficheinter->creer) } /* - * Mise � jour d'une ligne d'intervention + * Mise a jour d'une ligne d'intervention */ if ($_POST['action'] == 'updateligne' && $user->rights->ficheinter->creer && $_POST["save"] == $langs->trans("Save")) { @@ -344,8 +344,9 @@ if ($_GET['action'] == 'down' && $user->rights->ficheinter->creer) /* - * Affichage page + * View */ + $html = new Form($db); $formfile = new FormFile($db); @@ -374,7 +375,8 @@ if ($_GET["action"] == 'create') } $ficheinter = new Fichinter($db); - $result=$ficheinter->fetch($fichinterid); + $ficheinter->date = time(); + if ($fichinterid) $result=$ficheinter->fetch($fichinterid); $obj = $conf->global->FICHEINTER_ADDON; $obj = "mod_".$obj;