Fix: Maxi bug. Value for date used in object numbering module was current date instead of date of object.

This commit is contained in:
Laurent Destailleur 2008-07-05 15:31:30 +00:00
parent 6d8755edd4
commit d77f36285e
2 changed files with 7 additions and 4 deletions

View File

@ -213,6 +213,7 @@ if ($handle)
print '</td>'; print '</td>';
$ficheinter=new Fichinter($db); $ficheinter=new Fichinter($db);
$ficheinter->initAsSpecimen();
// Info // Info
$htmltooltip=''; $htmltooltip='';

View File

@ -217,7 +217,7 @@ if ($_POST['action'] == "addligne" && $user->rights->ficheinter->creer)
} }
/* /*
* Mise <EFBFBD> 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")) 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); $html = new Form($db);
$formfile = new FormFile($db); $formfile = new FormFile($db);
@ -374,7 +375,8 @@ if ($_GET["action"] == 'create')
} }
$ficheinter = new Fichinter($db); $ficheinter = new Fichinter($db);
$result=$ficheinter->fetch($fichinterid); $ficheinter->date = time();
if ($fichinterid) $result=$ficheinter->fetch($fichinterid);
$obj = $conf->global->FICHEINTER_ADDON; $obj = $conf->global->FICHEINTER_ADDON;
$obj = "mod_".$obj; $obj = "mod_".$obj;